var speed=30; m_2.innerHTML=m_1.innerHTML; function Marquee(){ if(m.scrollLeft>=m_1.scrollWidth){ m.scrollLeft=0; } else{ m.scrollLeft++; } } var MyMar=setInterval(Marquee,speed); m.onmouseover=function(){clearInterval(MyMar);} m.onmouseout=function(){MyMar=setInterval(Marquee,speed);}
这样就ok了,先分享这两种,以后再更新更多的特效