今天分享一個淘寶店鋪裝修帶圖片不間斷橫向滾動JS代碼教程,點擊運行代碼查看效果;使用方法:修改代碼里面的圖片和文字,還有連接地址,然后復制(復制的時候 加了版權,記得最后要去掉),粘貼到你的店鋪裝修中心自定義區域內,發布就可以了!(自己多試一下,有問題在文章最下面留言)不多說了,先看效果圖!正所謂有圖有真相!

<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=http://www.fankelipinka.com target=_blank><img border=0 src="http://www.qpsh.com/icon/BS9097.jpg" width=150 height=100 hspace=22></a><br><center><b>說明一</b></center></td>
<td width=30></td>
<td><a href=http://www.wangtx.com target=_blank><img border=0 src="http://www.qpsh.com/icon/BS9092.jpg" width=150 height=100 hspace=22></a><br><center><b>說明二</b></center></td></td>
<td width=30></td>
<td><a href=http://www.yamaxun.org target=_blank><img border=0 src="http://www.qpsh.com/icon/BS9084.jpg" width=150 height=100 hspace=22></a><br><center><b>說明三</b></center></td>
<td><a href=http://www.cnwenger.com target=_blank><img border=0 src="http://www.qpsh.com/icon/BS9079.jpg" width=150 height=100 hspace=22></a><br><center><b>說明四</b></center></td>
<td width=30></td>
<td><a href=http://www.pc555.com target=_blank><img border=0 src="http://www.qpsh.com/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_qpsh_com.onmouseover=function() {clearInterval(MyMar)}
www_qpsh_com.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
</td></tr>
</table>如果覺得上面的文章對你有用,可以打賞我一點!下面是支付方式!感謝!(多少都無所謂,你的心意最最重要!)

