为什么我这个鼠标放上去滚动速度反而大了呢,越来越快
<script type="text/javascript">
var are = document.getElementById('sbody');
var con1 = document.getElementById("con1");
var con2 = document.getElementById("con2");
con2.innerHTML = con1.innerHTML;
var time = 50;
are.scrollTop=0;
function scc()
{
if(are.scrollTop>=con1.offsetHeight)
{
are.scrollTop=0;
}
else{
are.scrollTop++;
}
}
var my = setInterval("scc()",time);
are.onmouseover = function() {
clearInserval(my);
}
are.onmouseout = function()
{
my = setInterval("scc()",time);
}
</script>