发布一个帝国cms无缝隙滚动图片标签

时间:2021-05-02

把以下代码做成标签就可以实现无缝隙图片滚动了<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:///skin/cmsmoban/images/logo.gif"></td><td><img src="http:///skin/cmsmoban/images/logo.gif"></td><td><img src="http:///skin/cmsmoban/images/logo.gif"></td><td><img src="http:///skin/cmsmoban/images/logo.gif"></td><td><img src="http:///skin/cmsmoban/images/logo.gif"></td><td><img src="http:///skin/cmsmoban/images/logo.gif"></td><td><img src="http:///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.innerHTMLfunction Marquee3(){if(fx_gun_left2.offsetWidth-fx_gun_left.scrollLeft<=0)fx_gun_left.scrollLeft-=fx_gun_left1.offsetWidthelse{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>

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章