图片横行浮动问题大侠们进来帮下忙

楼主
图片横行浮动问题大侠们进来帮下忙
[P]<style type="text/css">
.di{
width:500px;
height:10px;}
.di1{
width:500px;
height:10px;}
.di2{
width:2px;
height:10px;}
</style>
<div class="di"  id="demo">
<div class="di1" id="demo1">1212121212121212121212</div>
<div id="demo2"></div>
</div>
<script>
var speed3=25//速度数值越大速度越慢
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed3)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed3)}
</script>[/P][P]看看这段代码那里出了问题了呀[/P]

电脑版 Page created in 0.0586 seconds with 3 queries.