deputy963
Posts: 5 From: Indianapolis,IN USA Status: offline
|
Neat expanding window - 10/17/2000 20:16:00
I ran across this script it opens a new window that expands to full screen...VERY VERY COOL. <script> var mylocation="newsite.htm" var winheight =100 var winsize =100 var x=5 function go(){ win2=window.open("","","scrollbars=no") if (!document.layers&&!document.all){ win2.location=mylocation return } win2.resizeTo (100 ,100 ) win2.moveTo(50,25) go2() } function go2(){ if (winheight>=screen.availHeight-55) x=0 win2.resizeBy(5,x) winheight+=5 winsize+=5 if (winsize>=screen.width-90){ win2.location=mylocation winheight =100 winsize =100 x=5 return } setTimeout("go2()",10) } </script> This will fit to page regardless of resolution. To see this in action... http://home.earthlink.net/~crashdjs/jcwebtest2.html
|