PDA

View Full Version : Exactly filling browser window


Andy_R
06-05-2003, 02:32 PM
This is driving me mad, I can't get rid of the vertical scrollbar in my browser window, despite much searching of forums and finding several 'solutions' that don't work for me.

In my BODY tag I have
MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" RIGHTMARGIN="0" TOPMARGIN="0" BOTTOMMARGIN="0" SCROLL="no"

In my OBJECT tag I have
WIDTH="100%" HEIGHT="100%"

and in my EMBED tag I have
scale=exactfit WIDTH="100%" HEIGHT="100%"

how many more times to I have to tell it it should fill the damn window exactly?

Aaargh!

farafiro
06-05-2003, 02:36 PM
Andy
welcome to the board

u need JavaScript to do that
http://www.actionscript.org/forums/showthread.php3?s=&threadid=17312&highlight=javascript

Andy_R
06-05-2003, 02:43 PM
Thanks for the welcome!

As far as I can tell (please correct me if I'm wrong!), that javascript will open a new window, what I want to do is fill the exisiting window, so I don't get blocked by pop-up disablers, and to avoid the screen flickering when the new window opens and the old one closes.

My site is resizing to the correct height, but I always get an unwanted scrollbar on the right that allows me to scroll a few pixels below the bottom of the swf.

farafiro
06-05-2003, 02:52 PM
also the JS removes the scrollbars

Andy_R
06-05-2003, 05:22 PM
I've found the answer!

The answer is to use frames (http://www.actionscript.org/forums/showthread.php3?s=&threadid=24153&highlight=frameset)

I missed that on my search because no-one on that thread used the word 'window' at any point :rolleyes:

Btw, it's amazing how many commercial sites have that unwanted scrollbar - it took me quite a while to find one that was doing what I wanted and have a poke about in the html to see what was going on, but once I knew it invovled a frameset it was easy to find.

farafiro
06-08-2003, 08:34 AM
frames are evilfor the sake of searching in browsers

http://www.richardinfo.com/examples/Richard_Examples/scrollbar_tests.html
http://www.milov.nl/forum/1/262