Forums
This topic is locked
Onload at 800x600...
Posted 16 Jun 2004 10:15:02
1
has voted
16 Jun 2004 10:15:02 Richard Georgiou posted:
Hi All,First I'd like to thank Vince for all his help on www.atukv.co.uk which is now up and live... - THANK YOU!!!
My issue is I need to be able to set the browser window for a site I'm creating to 800x600 (or another size) when the user loads the site... So the home page loads, then instantly it resizes it's self to 800x600 with no borders etc...
I've been trying to work out how to do this for a few days but can't work it out...
Any help would be appreciated muchly!
Thanks again
Richard Georgiou
Replies
Replied 16 Jun 2004 16:23:45
16 Jun 2004 16:23:45 Dave Thomas replied:
index page has the vbscript code declation in plain view on top left.
this should do the trick, it's not for a specific size but it will maximise the window for you
[code[ <script language="JavaScript1.2"> <!-- /*********************************************** * Auto Maximize Window Script ***********************************************/ top.window.moveTo(0,0); if (document.all) { top.window.resizeTo(screen.availWidth,screen.availHeight); } else if (document.layers||document.getElementById) { if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){ top.window.outerHeight = screen.availHeight; top.window.outerWidth = screen.availWidth; } } //--> </script> [/code]
put in the head of the page
Regards,
Dave
[img]www.nova-cs.co.uk/DmxAvatar.jpg" border="0">
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
this should do the trick, it's not for a specific size but it will maximise the window for you
[code[ <script language="JavaScript1.2"> <!-- /*********************************************** * Auto Maximize Window Script ***********************************************/ top.window.moveTo(0,0); if (document.all) { top.window.resizeTo(screen.availWidth,screen.availHeight); } else if (document.layers||document.getElementById) { if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){ top.window.outerHeight = screen.availHeight; top.window.outerWidth = screen.availWidth; } } //--> </script> [/code]
put in the head of the page
Regards,
Dave
[img]www.nova-cs.co.uk/DmxAvatar.jpg" border="0">
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]