<div id=demo style="overflow:hidden;width:750;" align=center> <table border=0 align=center cellpadding=1 cellspacing=1 cellspace=0 > <tr><td valign=top bgcolor=ffffff id=marquePic1> <table width='100%' border='0' cellspacing='0'> <tr> <td align=center><a href='#'><img src="http://www.baidu.com/img/logo.gif" width=120 height=80 border=0><br><br>01</a></td> <td align=center><a href='#'><img src=http://www.baidu.com/img/logo.gif width=120 height=80 border=0><br><br>02</a></td> <td align=center><a href='#'><img src=http://www.baidu.com/img/logo.gif width=120 height=80 border=0><br><br>03</a></td> <td align=center><a href='#'><img src="http://www.baidu.com/img/logo.gif" width=120 height=80 border=0><br><br>04</a></td> <td align=center><a href='#'><img src=http://www.baidu.com/img/logo.gif width=120 height=80 border=0><br><br>05</a></td> <td align=center><a href='#'><img src=http://www.baidu.com/img/logo.gif width=120 height=80 border=0><br><br>06</a></td> <td align=center><a href='#'><img src="http://www.baidu.com/img/logo.gif" width=120 height=80 border=0><br><br>07</a></td> <td align=center><a href='#'><img src=http://www.baidu.com/img/logo.gif width=120 height=80 border=0><br><br>08</a></td> <td align=center><a href='#'><img src=http://www.baidu.com/img/logo.gif width=120 height=80 border=0><br><br>09</a></td> </tr></table> </td><td id=marquePic2 valign=top></td></tr> </table></div> <script type="text/javascript"> var speed=50 marquePic2.innerHTML=marquePic1.innerHTML function Marquee(){ if(demo.scrollLeft>=marquePic1.scrollWidth){ demo.scrollLeft=0 }else{ demo.scrollLeft++ } } var MyMar=setInterval(Marquee,speed) demo.onmouseover=function() {clearInterval(MyMar)} demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)} </script>
不间断向左滚动代码
精选 转载
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
连续不间断仿marquee滚动
利用javascript+css+dom实现的仿marquee滚动功能,不过比marquee更完善,可以连续不间断的滚动<div id="sc
JavaScript CSS ViewUI css javascript -
JS title栏文字不间断滚动
<!DOCTYPE html PUBLIC "-//W3C//DTD999/xhtml"><head><
xhtml javascript ViewUI html xml -
marquee制作连续不间断滚动图片效果
<div id=demo style=overflow:hidden;height:150;width:90;background:#214984;color:#ffffff> <div id=demo1> <!-- 定义图片 --> <img src="p_w_picpaths/logo_1.gif"> <
职场 休闲 marquee marquee图片滚动 marquee制作连续不间断滚动图片效果