<body>
<div id=demo style=overflow:hidden;height:100%;width:570;color:#ffffff>
<table align=left cellpadding=0 cellspace=0 border=0>
<tr>
<td id=demo1 valign=top>
<img src="file:///E|/图片/友情连接/未标题-1.jpg" width="240" height="86" />
<img src="file:///E|/图片/友情连接/logo.jpg" width="251" height="55" />
<img src="file:///E|/图片/友情连接/hwpx_02.jpg" width="242" height="100" />
<img src="file:///E|/图片/友情连接/top.jpg" width="778" height="116" />
</td>
<td id=demo2 valign=top></td>
</tr>
</table>
</div>
<script>
var speed=10
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.οnmοuseοver=function() {clearInterval(MyMar)}
demo.οnmοuseοut=function() {MyMar=setInterval(Marquee,speed)}
</script>
</body>
<ml>
转载于:https://www.cnblogs.com/tinachang021/archive/2008/09/05/1285340.html