时 间 记 忆
<<  < 2011 - >  >>
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

最 新 评 论

最 新 日 志

最 新 留 言

搜 索

用 户 登 录

友 情 连 接


 
 
 
图片循环连续滚动代码,解决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墨水(游客) ]
 
IT墨水(游客)图片是不循环的,猪头
 
个人主页 | 引用 | 返回 | 删除 | 回复
 
 
Re:图片循环连续滚动代码,解决m
[ 2007-4-29 10:45:00 | By: 123(游客) ]
 
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(游客) ]
 
xxxx(游客)都是tmd垃圾,向左的还说什么“
 
个人主页 | 引用 | 返回 | 删除 | 回复
 
 
Re:图片循环连续滚动代码,解决m
[ 2007-5-29 8:28:00 | By: 123123(游客) ]
 
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(游客) ]
 
laji(游客)怎么首尾连接了。连不起来。你拷
 
个人主页 | 引用 | 返回 | 删除 | 回复
 
 
Re:图片循环连续滚动代码,解决m
[ 2007-8-26 15:19:00 | By: 麦(游客) ]
 
麦(游客)完成之后怎么放入空间
 
 
 
Re:图片循环连续滚动代码,解决marquee的留白问题
[ 2008-6-9 20:21:00 | By: 访客w0REu2(游客) ]
 
访客w0REu2(游客)什么东西啊
根本都不是循坏的,还我被骗过来啦
还有那图片滚动的时候有时看不到啊
 
个人主页 | 引用 | 返回 | 删除 | 回复
 
 
Re:图片循环连续滚动代码,解决marquee的留白问题
[ 2008-10-12 10:56:00 | By: 访客8DTf8J(游客) ]
 
访客8DTf8J(游客)这些东西都有缺点呀,静态的到是没有什么问题,作成动态的就有问题目了。我的网站www.webidc2008.com
 
 
发表评论:
 
天涯博客 天涯博客
天涯博客欢迎您!