欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Js實(shí)現(xiàn)雙擊鼠標(biāo)自動(dòng)滾動(dòng)屏幕的示例代碼

 更新時(shí)間:2013年12月14日 09:32:03   作者:  
這篇文章主要介紹了Js實(shí)現(xiàn)雙擊鼠標(biāo)自動(dòng)滾動(dòng)屏幕的示例代碼。需要的朋友可以過來參考下,希望對(duì)大家有所幫助

如下所示:

復(fù)制代碼 代碼如下:

<html>
<head>

<script language="javascript" type="text/javascript">
//雙擊鼠標(biāo)滾動(dòng)屏幕的代碼
var currentpos,timer;
function initialize()
{
  timer=setInterval("scrollwindow()",30);
}
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; //開始
</script>

</head>
<body>
<%
  for i=1 to 100
%>
<p>雙擊屏幕滾動(dòng)的Js代碼</p>
<%
  next
%>
</body>
</html>

相關(guān)文章

最新評(píng)論