打码真的能赚钱吗:为什么不能无缝滚动?

来源:百度文库 编辑:高校问答 时间:2024/04/28 00:15:31
<body>

<!-- -->
<table width=750 border=0 cellpadding=0 cellspacing=0 bgcolor=ffffff>
<tr><td height=175 style="border:1px solid #C7C7C7;padding-top:8px" align=center valign=top>
<table width=750 border=0 cellpadding=0 cellspacing=0><tr><td><div id=demo style=overflow:hidden;height:175;width:750;color:#ffffff><table align=left cellpadding=0 cellspace=0 border=0><tr><td id=demo1 valign=top>
<table width="750" border="0" align="center" cellpadding="1" cellspacing="0">
<tr align="center" bgcolor="#FFFFFF">
<td>
<table width="0%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td bgcolor="#000000"><a href="http://sports.qq.com/a/20041113/000115.htm" target="_blank"><img src="http://img1.qq.com/sports/20041113/1007790.jpg" width="122" height="152" border="0"></a></td>
</tr>
</table>
国足坐镇广州只为钱?</td>
<td>
<table width="0%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td bgcolor="#000000"><a href="http://sports.qq.com/a/20041112/000072.htm" target="_blank"><img src="http://img1.qq.com/sports/20041112/1002280.jpg" width="122" height="152" border="0"></a></td>
</tr>
</table>道士表演武当剑</td>
<td>
<table width="0%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td bgcolor="#000000"><a href="http://sports.qq.com/a/20041113/000169.htm" target="_blank"><img src="http://img1.qq.com/sports/20041113/1007791.jpg" width="122" height="152" border="0"></a></td>
</tr>
</table>
奥尼尔勾手投篮</td>
<td>
<table width="0%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td bgcolor="#000000"><a href="http://sports.qq.com/a/20041113/000010.htm" target="_blank"><img src="http://img1.qq.com/sports/20041113/1007794.jpg" width="122" height="152" border="0"></a></td>
</tr>
</table>
申雪赵宏博双滑夺冠</td>
<td>
<table width="0%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td bgcolor="#000000"><a href="http://sports.qq.com/a/20041113/000090.htm" target="_blank"><img src="http://img1.qq.com/sports/20041113/1007793.jpg" width="122" height="152" border="0"></a></td>
</tr>
</table>
张宁小心走光啊!</td>
</tr>
</table>
</td><td id=demo2 valign=top></td></tr></table></div>
<script language=javaScript>

var speed=30//速度数值越大速度越慢
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>
</td></tr></table>
</td></tr></table>
</body>
听说是别人写的代码,考过来直接用为什么不能滚动?需要做什么改动?急需!
我想要无缝隙的滚动,请问这怎么改?

<marquee width="630" scrollamount="2" direction="left" height="16">滚动的文字</marquee>