Forum Moderators: open

Message Too Old, No Replies

How to Force Screen Size / No Scroll Bars?

         

born2drv

2:45 pm on May 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Everyone. I'm having trouble with this.... I want my homepage and every page in the site to basically resize itself to 640x480px and remove the vertical/horizontal scrollbars.

But the thing is, I don't want it to do it for a popup page and that's all I can find it for. I want it to do this when you enter the page. I didn't want to make a "click here to enter" dummy page that basically pops it up and hoards all the PR.

Any suggestions?

Thanks.

ShawnR

3:13 pm on May 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi

You can set the width and height:

e.g. window.outerWidth = ( window.screen.availWidth );

May need some adjustment to get it to do what you want across multiple browsers, but you get the idea.

Except for a pop-up, you can't change the scrollbars in javascript unless you change security privilages or sign your scripts. Either way, your visitor would be presented with a dialog box saying "do you want to allow this?", and probably say no. Not what you want to achieve either way.

The only way I know is to have the site in a frame in a frameset, and controll the scrolling with the <frame> tag.

Shawn