<html>
<head>
<script language="
javascript" type="text/javascript">
//双击鼠标滚动屏幕
var currentpos,timer;
function initialize()
{
timer=setInterval("scrollwindow()",30);
} //by www.jb200.com
function sc()
{
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if(currentpos !=document.body.scrollTop)
{
sc();
}
}
document.onmou
sedown=sc; //停止
document.ondblclick=initialize; //开始
</script>
</head>
<body>
<%
for i=1 to 100
%>
<p>
脚本学堂提供:双击屏幕滚动的Js代码</p>
<%
next
%>
</body>
</html>