满意答案
uutjiv3073
2013.08.25
采纳率:50% 等级:13
已帮助:5904人
onmouseOut="mouseOut()" >文字
function mouseOver(){
var a=0;
function move(){
a++;
if(a==49){clearInterval(time);}
divP.style.top = (divP.style.top.replace('px','')-0 +3);
}
var time = window.setInterval(move,10);}
function mouseOut(){
var ab=0;
function mov(){
ab++;
if(ab==49){clearInterval(time);}
divP.style.top = (divP.style.top.replace('px','') - 3);
}
var time = window.setInterval(mov,10);}
#a:hover {color:red;}
11分享举报