用这个代码:
<div class="box mt5">
<div style="padding-right:5px;padding-left:5px;background:url(http://demo4.hbzkwl.com/p/gg/led.jpg);width:940px">
<div id="LEDdemo" style="overflow: hidden; width: 100%">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="LEDdemo1"><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<div style="font-size:60px;font-weight:bold;filter:glow(color=red);width:100%; color:#ffff00;line-height:80px;white-space:nowrap;font-family:'隶书','黑体'">公告:恭喜本站全新改版正式上线成功,欢迎大家注册成为本站会员!</div>
</td>
</tr>
</table></td>
<td id="LEDdemo2"></td>
</tr>
</table>
</div>
<script type="text/javascript">
var speed3=10;
document.getElementById("LEDdemo2").innerHTML=document.getElementById("LEDdemo1").innerHTML;
function Marquee(){
if(document.getElementById("LEDdemo2").offsetWidth-document.getElementById("LEDdemo").scrollLeft<=0)document.getElementById("LEDdemo").scrollLeft-=document.getElementById("LEDdemo1").offsetWidth;else{document.getElementById("LEDdemo").scrollLeft=document.getElementById("LEDdemo").scrollLeft+2;}
}
var MyMar=setInterval(Marquee,speed3);
document.getElementById("LEDdemo").onmouseover=function(){clearInterval(MyMar);}
document.getElementById("LEDdemo").onmouseout=function(){MyMar=setInterval(Marquee,speed3);}
</script>
</div>
</div>