这个横向滚动图片的JS怎么只在IE里有效,在CHROME等里无效啊
请问下该怎么修改啊
目前只在IE里有效,到了360等浏览器里就横着一大条图片,页面错乱,不滚动。
<script>var speed=30demo2.innerHTML=demo1.innerHTMLfunction Marquee(){if(demo2.offsetWidth-demo.scrollLeft<=0)demo.scrollLeft-=demo1.offsetWidthelse{demo.scrollLeft++}}var MyMar=setInterval(Marquee,speed)demo.onmouseover=function() {clearInterval(MyMar)}demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)} </script>