就是通过控制div的偏移offsetLeft来控制位置
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
上面两句话就是鼠标动作
setInterval是设置定时器clearInterval是取消定时器
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
上面两句话就是鼠标动作
setInterval是设置定时器clearInterval是取消定时器
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货