再次请教图片连续滚动的问题,谢谢!
要不间断那种,不能留空白.
我从网上找了些类似的代码,如下:但总修改不成功,希望各位直接帮我改一下.谢谢了!这问题都卡了我三天了,头疼.
<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> =====================================================================
下面是.aspx页面:
<body>
    <form id="form1" runat="server">
    <div>
       <table height="85" width="600">
              <tr>
                  <td style="width: 93px">
                      <asp:ImageButton ID="ImageButton1" runat="server" Height="80px" Width="80px" ImageUrl="~/images/1.jpg" /></td>
                  <td style="width: 93px">
                      <asp:ImageButton ID="ImageButton2" runat="server" Height="80px" Width="80px" ImageUrl="~/images/2.jpg" /></td>
                  <td style="width: 93px">
                      <asp:ImageButton ID="ImageButton3" runat="server" Height="80px" Width="80px" ImageUrl="~/images/3.jpg" /></td>
                  <td style="width: 93px">
                      <asp:ImageButton ID="ImageButton4" runat="server" Height="80px" Width="80px" ImageUrl="~/images/4.jpg" /></td>
                  <td style="width: 93px">
                      <asp:ImageButton ID="ImageButton5" runat="server" Height="80px" Width="80px" ImageUrl="~/images/5.jpg" /></td>
                  <td style="width: 93px">
                      <asp:ImageButton ID="ImageButton6" runat="server" Height="80px" Width="80px" ImageUrl="~/images/6.jpg" /></td>
                  <td style="width: 93px">
                      <asp:ImageButton ID="ImageButton7" runat="server" Height="80px" Width="80px" ImageUrl="~/images/7.jpg" /></td>
              </tr>
          </table>
    
    </div>        
    </form>
</body