经典无缝图片滚动代码!

 

<DIV id=demo onmouseover=stopscroll(); style="OVERFLOW: hidden; WIDTH: 1000px" 
onmouseout=doscroll()>
<DIV id=demo1 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; WHITE-SPACE: nowrap"><A 
href="http://www.meilin.org/" target=_blank><IMG height=121 
src="index.files/zp001.jpg" width=188 border=0></A> <A 
href="http://www.meilin.org/" target=_blank><IMG height=121 
src="index.files/zp002.jpg" width=188 border=0></A> <A 
href="http://www.meilin.org/" target=_blank><IMG height=121 
src="index.files/zp003.jpg" width=188 border=0></A> <A 
href="http://www.meilin.org/" target=_blank><IMG height=121 
src="index.files/zp004.jpg" width=188 border=0></A> <A 
href="http://www.meilin.org/" target=_blank><IMG height=121 
src="index.files/zp005.jpg" width=188 border=0></A> <A 
href="http://www.meilin.org/" target=_blank><IMG height=121 
src="index.files/zp006.jpg" width=188 border=0></A> <A 
href="http://www.meilin.org/" target=_blank><IMG height=121 
src="index.files/zp007.jpg" width=188 border=0></A> <A 
href="http://www.meilin.org/" target=_blank><IMG height=121 
src="index.files/zp008.jpg" width=188 border=0></A> <A 
href="http://www.meilin.org/" target=_blank><IMG height=121 
src="index.files/zp009.jpg" width=188 border=0></A> </DIV></DIV>
<SCRIPT>
var t=demo.scrollWidth
demo1.innerHTML+=demo1.innerHTML
function doMarquee()
{
demo.scrollLeft=demo.scrollLeft<demo.scrollWidth-demo.offsetWidth?demo.scrollLeft+1:t-demo.offsetWidth
}
function doscroll()
{
  sc=setInterval(doMarquee,20)
}
function stopscroll()
{
  clearInterval(sc)
}
doscroll()
</SCRIPT>

 

转自:http://www.fleake.com/blog/article.asp?id=63

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值