代码如下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
" http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<div class="content" align=center>
<table borderColor=#C8C6C7 cellSpacing=1 cellPadding=1 width=728 align=center border=1 bgColor=#C8C6C7>
<tr>
<td >
<div id=demo >
<table class="wd" cellPadding=0 align=left border=0 cellspace="0">
<tr >
<td id=demo11 vAlign=top>
<table width='100%' cellpadding='0' cellspacing='5' border='0' align='center'><tr valign='top' > <td>
<a href="#" title="图片名称" target="_blank"><img src="图片地址" width="100" height="105" border="0"></a><br>
<a href="#" title="图片名称" target="_blank">图片名称</a></td><td><a href="#" title="图片名称" target="_blank"><img src="图片地址" width="100" height="105" border="0"></a><br>
<a href="#" title="图片名称" target="_blank">图片名称</a></td><td><a href="#" title="图片名称" target="_blank"><img src="图片地址" width="100" height="105" border="0"></a><br>
<a href="#" title="图片名称" target="_blank">图片名称</a></td><td><a href="#" title="图片名称" target="_blank"><img src="图片地址" width="100" height="105" border="0"></a><br>
<a href="#" title="图片名称" target="_blank">图片名称</a></td><td><a href="#" title="图片名称" target="_blank"><img src="图片地址" width="100" height="105" border="0"></a><br>
<a href="#" title="图片名称" target="_blank">图片名称</a></td><td><a href="#" title="图片名称" target="_blank"><img src="图片地址" width="100" height="105" border="0"></a><br>
<a href="#" title="图片名称" target="_blank">图片名称</a></td></tr></table></td>
<td id=demo12 vAlign=top></td>
</tr>
</table>
</div>
<SCRIPT>
var speed=15
demo12.innerHTML=demo11.innerHTML
function Marquee11(){
if(demo12.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo11.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar1=setInterval(Marquee11,speed)
demo.onmouseover=function() {clearInterval(MyMar1)}
demo.onmouseout=function() {MyMar1=setInterval(Marquee11,speed)}
</SCRIPT></td>
</tr>
</table>
</div>
</body>
</html>
为什么只滚动了两圈就停了呢?
怎么把它改为连续滚动的啊?