|
|
|
|
|
图片循环连续滚动代码,解决marquee的留白问题 |
[ 2006-9-26 20:49:00 | By: mynet ] |
向上: <base
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;"> <div id=demo1> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.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
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;"> <div id=demo1> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.com/bzjd.gif"><br> <img src="http://www.tyblog.com/gfjs.gif"><br><img src="http://www.tyblog.com/bxtt.gif"><br><img src="http://www.tyblog.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
href="http://image2.sina.com.cn/gm/lineage2/whz/newwh/images/fy/images/images/ifimage/"> <div id=demo style="overflow:hidden;height:100px;width:300px;"><table align=left
cellpadding=0 cellspace=0 border=0><tr><td id=demo1 valign=top><img src="http://www.tyblog.com/gfjs.gif"><img
src="http://www.tyblog.com/bxtt.gif"><img src="http://www.tyblog.com/bzjd.gif"><img src="http://www.tyblog.com/gfjs.gif"><img src="http://www.tyblog.com/bxtt.gif"><img
src="http://www.tyblog.com/bzjd.gif"></td><td id=demo2 valign=top></td></tr></table></div> <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
href="http://image2.sina.com.cn/gm/lineage2/whz/newwh/images/fy/images/images/ifimage/"> <div id=demo style="overflow:hidden;height:100px;width:300px;"><table align=left
cellpadding=0 cellspace=0 border=0><tr><td id=demo1 valign=top><img src="http://www.tyblog.com/gfjs.gif"><img
src="http://www.tyblog.com/bxtt.gif"><img src="http://www.tyblog.com/bzjd.gif"><img src="http://www.tyblog.com/gfjs.gif"><img src="http://www.tyblog.com/bxtt.gif"><img
src="http://www.tyblog.com/bzjd.gif"></td><td id=demo2 valign=top></td></tr></table></div> <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> |
|
|
Re:图片循环连续滚动代码,解决m |
[ 2007-3-12 16:46:00 | By: 无名(游客) ] |
为什么只有代码?! 最好能说明 |
|
|
Re:图片循环连续滚动代码,解决m |
[ 2007-4-13 10:52:00 | By: IT墨水(游客) ] |
图片是不循环的,猪头 |
|
|
Re:图片循环连续滚动代码,解决m |
[ 2007-4-29 10:45:00 | By: 123(游客) ] |
是循环的,可是等一下就自己停了! |
|
|
Re:图片循环连续滚动代码,解决m |
[ 2007-5-5 16:24:00 | By: 上帝(游客) ] |
猪头,以为自己很聪明,哪里抄来 |
|
|
Re:图片循环连续滚动代码,解决m |
[ 2007-5-6 10:25:00 | By: 梦之圆(游客) ] |
|
|
Re:图片循环连续滚动代码,解决m |
[ 2007-5-10 12:04:00 | By: xxxx(游客) ] |
都是tmd垃圾,向左的还说什么“ |
|
|
Re:图片循环连续滚动代码,解决m |
[ 2007-5-29 8:28:00 | By: 123123(游客) ] |
|
|
Re:图片循环连续滚动代码,解决m |
[ 2007-6-22 14:26:00 | By: 往往往往(游客) ] |
不咬年得转子阿 |
|
|
Re:图片循环连续滚动代码,解决m |
[ 2007-7-2 11:26:00 | By: 唉(游客) ] |
唉!咋找了这么多的 就是没有一 |
|
|
Re:图片循环连续滚动代码,解决m |
[ 2007-7-8 18:03:00 | By: laji(游客) ] |
怎么首尾连接了。连不起来。你拷 |
|
|
Re:图片循环连续滚动代码,解决m |
[ 2007-8-26 15:19:00 | By: 麦(游客) ] |
完成之后怎么放入空间 |
|
|
Re:图片循环连续滚动代码,解决marquee的留白问题 |
[ 2008-6-9 20:21:00 | By: 访客w0REu2(游客) ] |
什么东西啊 根本都不是循坏的,还我被骗过来啦 还有那图片滚动的时候有时看不到啊 |
|
|
Re:图片循环连续滚动代码,解决marquee的留白问题 |
[ 2008-10-12 10:56:00 | By: 访客8DTf8J(游客) ] |
这些东西都有缺点呀,静态的到是没有什么问题,作成动态的就有问题目了。我的网站www.webidc2008.com |
|
|
|
|
|