<DIV id=demo >
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD id=demo1 valign=top><IMG src="image/1.jpg">
<IMG src="image/2.gif"><IMG src="image/3.jpg">
<IMG src="image/ad-01.jpg"><IMG src="image/ad-02.jpg">
<IMG src="image/ad-03.jpg"><IMG src="image/ad-04.jpg">
</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.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</SCRIPT>
为什么图片轮回转动几圈就不会动了?????