<div class="codetitle"> <span><a style="CURSOR: pointer" data="41685" class="copybut" id="copybut41685" onclick="doCopy('code41685')"><u>複製程式碼</u></a></span>程式碼如下:</div> <div class="codebody" id="code41685"> <br><div style="border:#d3d3d3 1pxsolid; ;"> <br> <div id="demo" style="overflow:hidden;height:160;width:100%;"> <br> 列表<br> <br> <div id="demo2"></div> <br> <div id="demo2"></div> <br> </div> <br> var speed=30<br> demo2.innerHTML=demo1.innerHTML<br> function Marquee(){<br> -=demo1.offsetHeight<br> else{<br> demo.scrolltop <br>} <br>}<br>var mymar = setInterval(marque e,速度)<ance> demo.onmouseover = function() {MyMar=setInterval(Marquee,speed)}<br> >; <br><br></ance> </div> </div>