标签:javascript
window.moveBy(x,y)参数说明如下。
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script type="text/javascript"> function drop() { var heig = window.screen.availHeight; if(self.moveBy) { self.moveBy(0,-heig); for(i = Math.floor(heig/3);i>0;i--) { self.moveBy(0,3); } } } </script> </head> <body onload = "drop()"> <img src="new.jpg"/><br/> <img src="new.jpg"/><br/> <img src="new.jpg"/><br/> <img src="new.jpg"/><br/> </body> </html>
标签:javascript
原文地址:http://blog.csdn.net/yejinwei1220/article/details/46238981