标签:javascript
scroll(x,y);参数说明如下。
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script type="text/javascript"> var position = 0; function scroller() { if(true) { position++; scroll(0,position); clearTimeout(timer); var timer = setTimeout("scroller()",10); } } scroller(); </script> </head> <body> <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/45847679