把以下代碼做成標簽就可以實現(xiàn)無縫隙圖片滾動了
<div id=fx_gun_left style=overflow:hidden;height:100;width:90;background:#214984;color:#ffffff>
<table cellpadding="0" cellspacing="0" border="0">
<tr><td id="fx_gun_left1" valign="top" align="center">
<table cellpadding="2" cellspacing="0" border="0">
<tr align="center">
<td><img src="http://www.daixiao#/skin/cmsmoban/images/logo.gif"></td>
<td><img src="http://www.daixiao#/skin/cmsmoban/images/logo.gif"></td>
<td><img src="http://www.daixiao#/skin/cmsmoban/images/logo.gif"></td>
<td><img src="http://www.daixiao#/skin/cmsmoban/images/logo.gif"></td>
<td><img src="http://www.daixiao#/skin/cmsmoban/images/logo.gif"></td>
<td><img src="http://www.daixiao#/skin/cmsmoban/images/logo.gif"></td>
<td><img src="http://www.daixiao#/skin/cmsmoban/images/logo.gif"></td>
</tr>
</table>
</td>
<td id="fx_gun_left2" valign="top"></td>
</tr>
</table>
</div>
<script>
var speed=30//速度數(shù)值越大速度越慢
fx_gun_left2.innerHTML=fx_gun_left1.innerHTML
function Marquee3(){
if(fx_gun_left2.offsetWidth-fx_gun_left.scrollLeft<=0)
fx_gun_left.scrollLeft-=fx_gun_left1.offsetWidth
else{
fx_gun_left.scrollLeft++
}
}
var MyMar3=setInterval(Marquee3,speed)
fx_gun_left.onmouseover=function() {clearInterval(MyMar3)}
fx_gun_left.onmouseout=function() {MyMar3=setInterval(Marquee3,speed)}
</script>
版權聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權益請與我們聯(lián)系,我們將在24小時內(nèi)刪除!謝謝!
轉載請注明: 發(fā)布一個帝國cms無縫隙滾動圖片標簽