As shown below:
Copy the code code as follows:
<html>
<head>
<script language="javascript" type="text/javascript">
//Code for double-clicking the mouse to scroll the screen
var currentpos,timer;
function initialize()
{
timer=setInterval("scrollwindow()",30);
}
functionsc()
{
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if(currentpos !=document.body.scrollTop)
{
sc();
}
}
document.onmousedown=sc; //Stop
document.ondblclick=initialize; //Start
</script>
</head>
<body>
<%
for i=1 to 100
%>
<p>Js code for double-clicking the screen to scroll</p>
<%
next
%>
</body>
</html>