window.onload=function(){ var right3=document.getElementById("top_right3") var oLi=document.getElementById("top_hidden") var aLi=oLi.getElementsByTagName("ul") var oSpan=right3.getElementsByTagName('span') right3.onmouseover=function() { startMove(400) } var timer=null; function startMove(Tag) { var oLi=document.getElementById("top_hidden") var aLi=document.getElementsByTagName("ul") clearInterval(timer) timer=setInterval(function() { var speed=(Tag-aLi.offsetTop)/10; speed=speed>0?Math.ceil(speed):Math.floor(speed) aLi.style.top=aLi.offsetTop+speed+'px' },30) } }
添加回答
举报
0/150
提交
取消