双击页面自动滚屏,单击再停止的脚本代码

      Dreamweaver 2005-4-14 15:17
这段代码如下所示:
</head>
<Script language=javascript>
var currentpos,timer;
function initialize() {
timer=setInterval("scrollwindow()",16);
}
function sc(){
clearInterval(timer);
}
function scrollwindow() {
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos != document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize
document.ondblclick=initialize
</Script>
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}