<html>
<HEAD>
<TITLE></TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE type=text/css>
#demo a {
width:100%;
overflow:hidden;
font:12px/16px tahoma;
display:block;
text-decoration:none;
margin:2px;
color:#4a551c;
padding-left:2px;
text-align:left;
}
#demo a:hover {
color:#ff6600;
}
</STYLE>
</HEAD>
<body>
<div id="demo" style="overflow:hidden;height:132px;width:400px; border:1px solid #dde5bc; overflow:hidden;">
<div id=demo1>
<a href="#">鍗囩骇鏄浗鍐呴潪甯哥洓琛岀殑涓€绉?4 浜烘墤鍏嬬墝娓告垙</a>
<a href="#">鍙互閫夋嫨涓€鍓墝銆佷袱鍓墝鎴栬€呬笁鍓墝杩涜</a>
<a href="#">鍗囩骇鏄浗鍐呴潪甯哥洓琛岀殑涓€绉?4 浜烘墤鍏嬬墝娓告垙</a>
<a href="#">鍙互閫夋嫨涓€鍓墝銆佷袱鍓墝鎴栬€呬笁鍓墝杩涜</a>
<a href="#">鍙互閫夋嫨涓€鍓墝銆佷袱鍓墝鎴栬€呬笁鍓墝杩涜</a>
<a href="#">鍙互閫夋嫨涓€鍓墝銆佷袱鍓墝鎴栬€呬笁鍓墝杩涜</a>
<a href="#">鍙互閫夋嫨涓€鍓墝銆佷袱鍓墝鎴栬€呬笁鍓墝杩涜</a>
<a href="#">鍙互閫夋嫨涓€鍓墝銆佷袱鍓墝鎴栬€呬笁鍓墝杩涜</a>
<a href="#">鍙互閫夋嫨涓€鍓墝銆佷袱鍓墝鎴栬€呬笁鍓墝杩涜</a>
<a href="#">鍙互閫夋嫨涓€鍓墝銆佷袱鍓墝鎴栬€呬笁鍓墝杩涜</a>
</div>
<div id=demo2></div>
</div>
<script>
var speed=40
var demo=document.getElementById("demo");
var demo2=document.getElementById("demo2");
var demo1=document.getElementById("demo1");
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetTop-demo.scrollTop<=0)
demo.scrollTop-=demo1.offsetHeight
else{
demo.scrollTop++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
</body>
</html>