向上: href=”http://image2.sina.com.cn/gm/lineage2/whz/newwh/images/fy/images/images/ifimage/“> <div id=demo style=”overflow:hidden; width:128px; height:300px;”> 向下: href=”http://image2.sina.com.cn/gm/lineage2/whz/newwh/images/fy/images/images/ifimage/“> <div id=demo style=”overflow:hidden; width:128px; height:300px;”> 向左: href=”http://image2.sina.com.cn/gm/lineage2/whz/newwh/images/fy/images/images/ifimage/“> cellpadding=0 cellspace=0 border=0><tr><td id=demo1 valign=top><img src=”http://www.knowsky.com/gfjs.gif”><img src=”http://www.knowsky.com/bxtt.gif”><img src=”http://www.knowsky.com/bzjd.gif”><img src=”http://www.knowsky.com/gfjs.gif”><img src=”http://www.knowsky.com/bxtt.gif”><img src=”http://www.knowsky.com/bzjd.gif”></td><td id=demo2 valign=top></td></tr></table></div> 向右: href=”http://image2.sina.com.cn/gm/lineage2/whz/newwh/images/fy/images/images/ifimage/“> cellpadding=0 cellspace=0 border=0><tr><td id=demo1 valign=top><img src=”http://www.knowsky.com/gfjs.gif”><img src=”http://www.knowsky.com/bxtt.gif”><img src=”http://www.knowsky.com/bzjd.gif”><img src=”http://www.knowsky.com/gfjs.gif”><img src=”http://www.knowsky.com/bxtt.gif”><img src=”http://www.knowsky.com/bzjd.gif”></td><td id=demo2 valign=top></td></tr></table></div>
<base
<div id=demo1>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
</div>
<div id=demo2></div>
</div>
<script language=”javascript”>
var speed=30
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetTop-demo.scrollTop<=0)
demo.scrollTop-=demo1.offsetHeight
else{
demo.scrollTop++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
<base
<div id=demo1>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
<img src=”http://www.knowsky.com/gfjs.gif”><br><img src=”http://www.knowsky.com/bxtt.gif”><br><img src=”http://www.knowsky.com/bzjd.gif”><br>
</div>
<div id=demo2></div>
</div>
<script language=”javascript”>
var speed=30
demo2.innerHTML=demo1.innerHTML
demo.scrollTop=demo.scrollHeight
function Marquee(){
if(demo1.offsetTop-demo.scrollTop>=0)
demo.scrollTop+=demo2.offsetHeight
else{
demo.scrollTop–
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
<base
<div id=demo style=”overflow:hidden;height:100px;width:300px;”><table align=left
<script>
var speed=30
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
<base
<div id=demo style=”overflow:hidden;height:100px;width:300px;”><table align=left
<script>
var speed=30
demo2.innerHTML=demo1.innerHTML
demo.scrollLeft=demo.scrollWidth
function Marquee(){
if(demo.scrollLeft<=0)
demo.scrollLeft+=demo2.offsetWidth
else{
demo.scrollLeft–
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
图片左右循环连续滚动代码,解决marquee的留白问题 _心得技巧教程
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 图片左右循环连续滚动代码,解决marquee的留白问题 _心得技巧教程
相关推荐
-      经典收藏:网页页面常用的特殊符号_心得技巧教程
-      用html和css写出漂亮正规的blog_心得技巧教程
-      网站页面的均衡规划与选择_心得技巧教程
-      一个网友观点:两年以来使用div排版的经验_心得技巧教程
-      photoshop制作“非主流”彩虹色调照片_photoshop教程
-      禁止查看网页源代码方法总结_心得技巧教程
-      左右图片循环滚动停顿一下后继续_心得技巧教程
-      zend framework 1.0正式版即将发布_php文摘