marquee,图片连续滚动,不留空白

在网上有类似的方法,原来一直认为必须是asp的程序,而在asp.net里用不了,结果在vs2005里照着改一下居然好用,下面是我按照我要的效果做的方法:

(图片是从数据库中取路径,page_load()的时候赋的url,是一个长图片从右至左不间断的滚动)

 



PS:图片的长度不能小于id=maq的div的宽度,否则只循环一次就停止了.

 

 
 
1.文字也是可以连续滚动的
 
2.文字也是可以连续滚动的
 
3.文字也是可以连续滚动的
 
4.文字也是可以连续滚动的
 
5.文字也是可以连续滚动的
 
6.文字也是可以连续滚动的
 
 
 

向上: 

href="http://image2.sina.com.cn/gm/lineage2/whz/newwh/images/fy/images/images/ifimage/"> 

 
 



 



 



 



 



 



 



 



 



 



 



 
 
 
 
 

向下: 

href="http://image2.sina.com.cn/gm/lineage2/whz/newwh/images/fy/images/images/ifimage/"> 

 
 



 



 



 



 



 



 



 



 



 



 



 
 
 
 
 

向左: 

href="http://image2.sina.com.cn/gm/lineage2/whz/newwh/images/fy/images/images/ifimage/"> 

cellpadding=0 cellspace=0 border=0>

src="/bxtt.gif">
src="/bzjd.gif">
 
 

向右: 

href="http://image2.sina.com.cn/gm/lineage2/whz/newwh/images/fy/images/images/ifimage/"> 

cellpadding=0 cellspace=0 border=0>

src="/bxtt.gif">
src="/bzjd.gif">
 



转自:http://blog.csdn.net/fengmingju/article/details/5908926

你可能感兴趣的:(js)