图片连续滚动,为什么我这个就不滚动呢?求救!!!!!!!
<div id="imageFlow" style="overflow: hidden; width: 680px; background-color: #EFFBEF; height: 174px">
<table width="645" height="174" border="0" style="vertical-align: top" cellspacing="0" cellpadding="0" class="blogphototab">
<tr>
<td id="demo1" align="left">
<asp:Repeater ID="RepeaterPhotolist" runat="server">
<ItemTemplate>
<table width="215" height="174" background="images/products_bj1.gif">
<tr><td height="2"></td></tr>
<tr>
<td height="133" align="center" valign="top"><img src="<%#Eval("picUrl") %>" style="width:160px; height:129px;"/></td>
</tr>
<tr>
<td height="39" align="center" valign="top"><font style="font-size:12px"><%#Eval("title") %></font></td>
</tr>
</table>
</ItemTemplate>
</asp:Repeater>
</td>
<td id="demo2">
</td>
</tr>
</table>
</div>
<div id="bigImgDiv" style="display: none; z-index: 100; position: absolute;">
<img height="100" id="bigImg" src="" width="120"/>
</div>
<script>
var speed=20//速度数值越大速度越慢
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-imageFlow.scrollLeft<0)
imageFlow.scrollLeft-=demo1.offsetWidth
else{ imageFlow.scrollLeft++ } }
var MyMar=setInterval(Marquee,speed)
imageFlow.onmouseover=function() {clearInterval(MyMar)}
imageFlow.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
</div>