图片横向滚动代码
<table width=700 border=0 cellpadding=0 cellspacing=0>
<tr><td>
<div id=www_qpsh_com style=overflow:hidden;height:120px;width:700px;color:#ff0000><table align=left cellpadding=0 cellspace=0 border=0><tr><td id=www_qpsh_com1 valign=top>
<table border=0 cellpadding=0 cellspacing=0>
<tr><td><a href=www.fankelipinka target=_blank><img border=0 src="www.qpsh/icon/BS9097.jpg" width=150 height=100 hspace=22></a><br><center><b>说明一</b></center></td>
<td width=30></td>
<td><a href=www.wangtx target=_blank><img border=0 src="www.qpsh/icon/BS9092.jpg" width=150 height=100 hspace=22></a><br><center><b>说明二</b></center></td></td>
<td width=30></td>
<td><a href= target=_blank><img border=0 src="www.qpsh/icon/BS9084.jpg" width=150 height=100 hspace=22></a><br><center><b>说明三</b></center></td>
<td><a href=wwwwenger target=_blank><img border=0 src="www.qpsh/icon/BS9079.jpg" width=150 height=100 hspace=22></a><br><center><b>说明四</b></center></td>
<td width=30></td>
<td><a href=www.pc555 target=_blank><img border=0 src="www.qpsh/icon/BS9070.jpg" width=150 height=100 hspace=22></a><br><
center><b>说明五</b></center></td>
</tr>
</table>
</td><td id=www_qpsh_com2 valign=top></td></tr></table></div>
<script>
var speed=10//速度数值越大速度越慢
www_qpsh_com2.innerHTML=www_qpsh_com1.innerHTML
怎么把图片做成滚动图片 function Marquee(){
if(www_qpsh_com2.offsetWidth-www_qpsh_com.scrollLeft<=0)
www_qpsh_com.scrollLeft-=www_qpsh_com1.offsetWidth
else{
www_qpsh_com.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
www_useover=function() {clearInterval(MyMar)}
www_useout=function() {MyMar=setInterval(Marquee,speed)}
</script>
</td></tr>
</table>
本代码由<a href=www.qpsh>网页特效网</a>提供
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论