标签:javascript
<html> <head> <title></title> <script language="JavaScript"> function pp() { alert("1"); var heightspeed = 2; var widthspeed = 7; var leftdist = 0; var topdist = 0; var winwidth = window.screen.availWidth - leftdist; var winheight = window.screen.availHeight - topdist; for (var sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed) { self.resizeTo("1", sizeheight); } for( var sizewidth = 1;sizewidth<winwidth;sizewidth+=widthspeed) { self.resizeTo(sizewidth, sizeheight); } } </script> </head> <body onload="pp()"></body> </html>这样本实例就做好了。
标签:javascript
原文地址:http://blog.csdn.net/yejinwei1220/article/details/45889361