2秒滚动
<style>a{display:block;font-size:15px};</style>
<div id="div1" style="width:300px;height:34px;overflow:hidden">
<a href="JAVAscript:">1,你可曾有过无数的梦想,</a>
<a href="JAVAscript:">2,却在时光的流逝里幻灭 </a>
<a href="JAVAscript:">3,你可曾对未来期待憧憬,</a>
<a href="JAVAscript:">4,却在成长的岁月中迷失</a>
</div>
<script>
var t=setInterval(myfunc,2000)
var d=document.getElementById("div1")
function myfunc(){
var o=d.firstChild
d.removeChild(o)
d.appendChild(o)
}
d.onmouseover=function(){clearInterval(t)}
d.onmouseout=function(){t=setInterval(myfunc,2000)}
</script>