sorciere
07-24-2003, 05:32 AM
How do I make a page size to 90% of the available width and 90% of the available height and move to the 0,0 coordinates using a function called 'myLoad'?
|
Click to See Complete Forum and Search --> : onLoad sorciere 07-24-2003, 05:32 AM How do I make a page size to 90% of the available width and 90% of the available height and move to the 0,0 coordinates using a function called 'myLoad'? gil davis 07-24-2003, 06:53 AM <script> function myLoad() { window.resizeTo(screen.width * .9, screen.height * .9); window.moveTo(0, 0); } </script> ... <body onload="myLoad()"> Mr J 07-24-2003, 07:06 AM Please try the following <script> <!-- function create_win(url){ newW=(window.screen.availWidth/100)*90; newH=(window.screen.availHeight/100)*90; NewWin=window.open(url); setTimeout("render()",5000) } function render(){ NewWin.moveTo(0,0) NewWin.resizeTo(newW,newH); } // --> </script> <a href="javascript:create_win('yourpage.htm')">Window</a> webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |