PDA

View Full Version : Is this the correct script?


dunkin
2006-02-06, 01:21 PM
Hello gang,
Is this the correct script to open a page that will fit properly on any size screen resolution? I have tried it and it appears to work correctly. Just wanted to make sure this was all that is needed or is there too much coding. Also, should the margins be set to zero? Not sure.
Thanks again,
Dunkin

<script>
<!--
if (window!= top)
top.location.href=location.href
// -->
</script>
<script language="JavaScript1.2">
<!--
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>

DangerDave
2006-02-06, 04:04 PM
There is nothing more annoying than resizing of windows... It assumes that EVERYONE has the same 'visual' setup..

Lots of clever people DONT..
eg: they have sidebars, start bars at the top of their screen, multiple screen setups etc

Any site that resizes my windows, I just close.
Any submission that resizes my window gets deleted.

DD