如题,就是滚动的时候不要显示空白,网上找了一下代码
- <DIV id=demo style="OVERFLOW: hidden; WIDTH: 100%">
- <TABLE cellPadding=0 align=left border=0 cellspace="0">
- <TBODY>
- <TR>
- <TD id=demo1 vAlign=top height=100>
- $label[listpic]
- </TD>
- <TD id=demo2 vAlign=top></TD></TR></TBODY></TABLE></DIV>
- <SCRIPT>
- var speed=30
- demo2.innerHTML=demo1.innerHTML
- demo.scrollLeft=demo.scrollWidth
- function Marquee(){
- 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>
- 不知道怎么改为科讯所用