onmouseOut = " mouseOut()" & gt;& lta & gt文本
& ltscript type = " text/JavaScript " & gt;
函數mouseOver(){
var a = 0;
函數move(){
a++;
if(a = = 49){ clear interval(time);}
divp . style . top =(divp . style . top . replace(' px ',' ')-0+3);
}
var time = window . setinterval(move,10);}
函數mouseOut(){
var ab = 0;
函數mov(){
a b++;
if(ab = = 49){ clear interval(time);}
divp . style . top =(divp . style . top . replace(' px ',' ')-3);
}
var time = window.setInterval(mov,10);}
& lt/script & gt;
& lt樣式類型-“文本/CSS”& gt;
# a:hover { color:red;}
& lt/style & gt;