复制内容到剪贴板
代码:
<base href="http://www.163.com/">
<div id=demo style=overflow:hidden;height:62;width:460;background:#cc66cc;color:#ffffff><table align=left cellpadding=0 cellspace=0 border=0><tr><td id=demo1 valign=top><img src="images/1.jpg" width="78" height="59" border="0"><img src="images/2.jpg" width="78" height="59"><img src="images/3.jpg" width="78" height="59"><img src="images/4.jpg" width="78" height="59"><img src="images/5.jpg" width="78" height="59"><img src="images/6.jpg" width="78" height="59"></td>
<td id=demo2 valign=top></td></tr></table>
</div>
<script>
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>加一个链接上去反而多一个空格图,解决不了。