问题描述
在页面的上部显示移动的图片,要连续不断的一直显示。在vs2005中就不好用。应该怎么该啊??<divid="demo"style="OVERFLOW:hidden;WIDTH:480px;height:105px;"><tablecellspacing="0"cellpadding="0"border="0"style="text-align:center"><tbody><tr><tdid="demo1"> <asp:Imageid="Image3"runat="server"ImageUrl="~/home/images/bl.jpg"Width="80px"Height="105px"></asp:Image><ahref=""><asp:Imageid="Image2"runat="server"ImageUrl="~/home/images/b.jpg"Width="80px"Height="105px"></asp:Image><asp:Imageid="Image4"runat="server"ImageUrl="~/home/images/bx.jpg"Width="80px"Height="105px"></asp:Image><asp:Imageid="Image5"runat="server"ImageUrl="~/home/images/gt.jpg"Width="80px"Height="105px"></asp:Image><asp:Imageid="Image6"runat="server"ImageUrl="~/home/images/kt.jpg"Width="80px"Height="105px"></asp:Image><asp:Imageid="Image1"runat="server"ImageUrl="~/home/images/bx.jpg"Width="80px"Height="105px"></asp:Image></td><tdid="demo2"></td></tr></tbody></table></div><scripttype="text/javascript">varspeed=20demo2.innerHTML=demo1.innerHTMLfunctionMarquee(){if(demo1.offsetWidth-demo.scrollLeft<=0)demo.scrollLeft=0elsedemo.scrollLeft++}varMyMar=setInterval(Marquee,speed)demo.onmouseover=function(){clearInterval(MyMar)}demo.onmouseout=function(){MyMar=setInterval(Marquee,speed)}</script>