把以下代码做成标签就可以实现无缝隙图片滚动了
<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.daixiao360.cn/skin/CMSmoban/images/logo.gif"></td>
<td><img src="http://www.daixiao360.cn/skin/CMSmoban/images/logo.gif"></td>
<td><img src="http://www.daixiao360.cn/skin/CMSmoban/images/logo.gif"></td>
<td><img src="http://www.daixiao360.cn/skin/CMSmoban/images/logo.gif"></td>
<td><img src="http://www.daixiao360.cn/skin/CMSmoban/images/logo.gif"></td>
<td><img src="http://www.daixiao360.cn/skin/CMSmoban/images/logo.gif"></td>
<td><img src="http://www.daixiao360.cn/skin/CMSmoban/images/logo.gif"></td>
</tr>
</table>
</td>
<td ID="fx_gun_left2" valign="top"></td>
</tr>
</table>
</div>
<script>
var speed=30//速度数值越大速度越慢
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>
总结
以上是内存溢出为你收集整理的发布一个帝国cms无缝隙滚动图片标签全部内容,希望文章能够帮你解决发布一个帝国cms无缝隙滚动图片标签所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)