Webpage automatic rolling code in IE is not compatible with how to solve the Goo

Webpage automatic rolling code in IE is not compatible with how to solve the Google browser can! Ask God to solve thank you thank you!
<script language=javascript>
var ScollSpeed=1;
function initialize()
{
timer=setInterval("scrollwindow()",ScollSpeed*ScollSpeed);
RefreshWinTimer=setInterval("RefreshWin()",10*60*1000);
}

function sc(){
clearInterval(timer);
clearInterval(RefreshWinTimer);
}
function reStart()
{
timer=setInterval("scrollwindow()",ScollSpeed*ScollSpeed);
window.scroll(0,0);
clearInterval(timer2);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos != document.body.scrollTop)
{
clearInterval(timer);
timer2=setInterval("reStart()",5*1000);

}

}
initialize();
document.onmousedown=sc
document.ondblclick=initialize

initialize
//if (ScollSpeed==0) sc();
</script>

Started by Virgil at November 13, 2016 - 10:33 PM

Your code a lot of mistakes, this change

<head>
<script type="text/javascript">
var ScollSpeed=1;
var timer,RefreshWinTimer,timer2
function initialize()
{ 
 timer=setInterval("scrollwindow()",ScollSpeed*ScollSpeed);
} 

function sc(){
clearInterval(timer); 
clearInterval(RefreshWinTimer);
}
function reStart()
{
   timer=setInterval("scrollwindow()",ScollSpeed*ScollSpeed);
   window.scroll(0,0);
   clearInterval(timer2); 
}
function scrollwindow() 
{ 
currentpos=document.body.scrollTop; 
window.scroll(0,++currentpos); 
if (currentpos != document.body.scrollTop) 
{
  clearInterval(timer); 
  timer2=setInterval("reStart()",5*1000);
  
}

} 
initialize();
document.onmousedown=sc;
document.ondblclick=initialize;
</script>
<head>
<body>

Posted by Maxwell at November 20, 2016 - 10:49 PM