首页 >web前端 >js教程 >双击滚屏-常用推荐_典型特效

双击滚屏-常用推荐_典型特效

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原创
2016-05-16 19:23:501107浏览

复制代码 代码如下:
<script> <BR>var currentpos,timer; <br><br>function initialize() <BR>{ <BR>timer=setInterval("scrollwindow()",10); <BR>} <BR>function sc(){ <BR>clearInterval(timer); <BR>} <BR>function scrollwindow() <BR>{ <BR>currentpos=document.body.scrollTop; <BR>window.scroll(0,++currentpos); <BR>if (currentpos != document.body.scrollTop) <BR>sc(); <BR>} <BR>document.onmousedown=sc <BR>document.ondblclick=initialize <BR></script>

本站用的是兼容声明的, 大家可以查看源文件
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn