Dreamweaver向下滚动图片代码(不间断、带链接、鼠标指向暂停)

Dreamweaver向下滚动图片代码(不间断、带链接、鼠标指向暂停)

Dreamweaver向下滚动图片代码(不间断、带链接、鼠标指向暂停)

 

 

<!--下面是向下滚动代码-->
<div id="colee_bottom" style="overflow:hidden;height:253px;width:410px;">
<div id="colee_bottom1">
<p><img src="/jscss/demoimg/200907/bg3.webp"></p>
<p><img src="/jscss/demoimg/200907/bg3.webp"></p>
<p><img src="/jscss/demoimg/200907/bg3.webp"></p>
<p><img src="/jscss/demoimg/200907/bg3.webp"></p>
<p><img src="/jscss/demoimg/200907/bg3.webp"></p>
<p><img src="/jscss/demoimg/200907/bg3.webp"></p>
<p><img src="/jscss/demoimg/200907/bg3.webp"></p>
<p><img src="/jscss/demoimg/200907/bg3.webp"></p>
<p><img src="/jscss/demoimg/200907/bg3.webp"></p>
</div>
<div id="colee_bottom2"></div>
</div>
<script>
var speed=30
var colee_bottom2=document.getElementById("colee_bottom2");
var colee_bottom1=document.getElementById("colee_bottom1");
var colee_bottom=document.getElementById("colee_bottom");
colee_bottom2.innerHTML=colee_bottom1.innerHTML
colee_bottom.scrollTop=colee_bottom.scrollHeight
function Marquee2(){
if(colee_bottom1.offsetTop-colee_bottom.scrollTop>=0)
colee_bottom.scrollTop+=colee_bottom2.offsetHeight
else{
colee_bottom.scrollTop--
}
}
var MyMar2=setInterval(Marquee2,speed)
colee_bottom.onmouseover=function() {clearInterval(MyMar2)}
colee_bottom.onmouseout=function() {MyMar2=setInterval(Marquee2,speed)}
</script>
<!--向下滚动代码结束-->

推荐阅读