关于滚动的问题
<div id=demo style="overflow:hidden; width:500px; height:120px;"> <table border="0" align="left" cellpadding="0" cellspacing="0" valign=left>
<tbody>
<tr>
<td id=demo1><table border="0" align="left" cellpadding="0" cellspacing="0" valign=left>
<tbody>
<tr>
<td align="center" width="120"><a href="product_detail.asp?id=689" title="LC铠装光纤跳线"><img src="images/company_46.jpg" border=0></a><br/>LC铠装光纤跳线</td>
<td align="center" width="120"><a href="product_detail.asp?id=692" title="LC铠装光纤跳线"><img src="images/company_44.jpg" border=0></a><br/>LC铠装光纤跳线</td>
<td align="center" width="120"><a href="product_detail.asp?id=696" title="LC铠装光纤跳线"><img src="images/company_39.jpg" border=0></a><br/>LC铠装光纤跳线</td>
<td align="center" width="120"><a href="product_detail.asp?id=697" title="LC铠装光纤跳线"><img src="images/company_33.jpg" border=0></a><br/>LC铠装光纤跳线</td>
<td align="center" width="120"><a href="product_detail.asp?id=704" title="LC铠装光纤跳线"><img src="images/company_41.jpg" border=0></a><br/>LC铠装光纤跳线</td>
</tr>
</tbody></table></td>
<td id=demo2 valign="top"></td>
</tr></tbody>
</table>
</div>
<script language="javascript">
var speed=30
demo2.innerHTML=demo1.innerHTML
//demo.scrollTop=demo.scrollHeight
function Marquee(){
//if(demo1.offsetTop-demo.scrollTop>=0)
//demo.scrollTop+=demo2.offsetHeight
//else{
//demo.scrollTop--
//}
//上滚动
if(demo2.offsetwidth-demo.scrollleft<=0)
demo.scrollleft-=demo2.offsetwidth
else{
demo.scrollleft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
怎么调试都不滚动