如下所示: 复制代码 代码如下: <BR>//双击鼠标滚动屏幕的代码<BR>var currentpos,timer;<BR>function initialize()<BR>{<BR> timer=setInterval("scrollwindow()",30);<BR>}<BR>function sc()<BR>{<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> {<BR> sc();<BR> }<BR>}<BR>document.onmousedown=sc; //停止<BR>document.ondblclick=initialize; //开始<BR> for i=1 to 100%>双击屏幕滚动的Js代码 next%>