图片循环滚动的效果怎么用dw做啊
3个回答
2013-09-04
展开全部
js代码就可以实现!用dw无法做无缝滚动!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-09-04
展开全部
简单点的
<marquee>要滚动的东东</marquee>
<marquee>要滚动的东东</marquee>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-09-04
展开全部
<div id=demo style="OVERFLOW: hidden; WIDTH: 754px; HEIGHT: 120px">
<table cellpadding=0 align=left border=0 cellspace="0">
<tr>
<td id=demo11 valign=top><!--{$GetPicPhoto(3,0,True,0,12,False,False,0,1,1,130,90,20,0,True,12)}-->
<table>
<tr>
<td><a href="../img/200811114150888.jpg" target="_blank"><img src="../img/200811114150888.jpg" width="120" height="120" border="0"></a></td>
<td><a href="../img/20071116124122884.jpg" target="_blank"><img src="../img/20071116124122884.jpg" width="120" height="120" border="0"></a></td>
<td><a href="../img/a.jpg" target="_blank"><img src="../img/a.jpg" width="120" height="120" border="0"></a></td>
<td><a href="../img/dw.jpg" target="_blank"><img src="../img/dw.jpg" width="120" height="120" border="0"></a></td>
<td><a href="../img/z_r6_c12.jpg" target="_blank"><img src="../img/z_r6_c12.jpg" width="120" height="120" border="0"></a></td>
<td><a href="../img/sw.gif" target="_blank"><img src="../img/sw.gif" width="120" height="120" border="0"></a></td>
<td><a href="../img/zr6_c7.jpg" target="_blank"><img src="../img/zr6_c7.jpg" width="120" height="120" border="0"></a></td>
<td><a href="../img/zr7_c14.jpg" target="_blank"><img src="../img/zr7_c14.jpg" width="120" height="120" border="0"></a></td>
</tr>
</table></td>
<td id=demo12 valign=top></td>
</tr>
</table>
</div>
<script>
var speed1=15
demo12.innerHTML=demo11.innerHTML
function Marquee11(){
if(demo12.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo11.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar1=setInterval(Marquee11,speed1)
demo.onmouseover=function() {clearInterval(MyMar1)}
demo.onmouseout=function() {MyMar1=setInterval(Marquee11,speed1)}
</script>
<table cellpadding=0 align=left border=0 cellspace="0">
<tr>
<td id=demo11 valign=top><!--{$GetPicPhoto(3,0,True,0,12,False,False,0,1,1,130,90,20,0,True,12)}-->
<table>
<tr>
<td><a href="../img/200811114150888.jpg" target="_blank"><img src="../img/200811114150888.jpg" width="120" height="120" border="0"></a></td>
<td><a href="../img/20071116124122884.jpg" target="_blank"><img src="../img/20071116124122884.jpg" width="120" height="120" border="0"></a></td>
<td><a href="../img/a.jpg" target="_blank"><img src="../img/a.jpg" width="120" height="120" border="0"></a></td>
<td><a href="../img/dw.jpg" target="_blank"><img src="../img/dw.jpg" width="120" height="120" border="0"></a></td>
<td><a href="../img/z_r6_c12.jpg" target="_blank"><img src="../img/z_r6_c12.jpg" width="120" height="120" border="0"></a></td>
<td><a href="../img/sw.gif" target="_blank"><img src="../img/sw.gif" width="120" height="120" border="0"></a></td>
<td><a href="../img/zr6_c7.jpg" target="_blank"><img src="../img/zr6_c7.jpg" width="120" height="120" border="0"></a></td>
<td><a href="../img/zr7_c14.jpg" target="_blank"><img src="../img/zr7_c14.jpg" width="120" height="120" border="0"></a></td>
</tr>
</table></td>
<td id=demo12 valign=top></td>
</tr>
</table>
</div>
<script>
var speed1=15
demo12.innerHTML=demo11.innerHTML
function Marquee11(){
if(demo12.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo11.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar1=setInterval(Marquee11,speed1)
demo.onmouseover=function() {clearInterval(MyMar1)}
demo.onmouseout=function() {MyMar1=setInterval(Marquee11,speed1)}
</script>
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询