jQuery.slide版本更新到5.0,增加切换步长,step
目前jQuery.slide支持自动切换,循环播放,可控制切换步长功能
查看实例:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head><title>演示:jQuery.slide.5.0图片集效果,自动切换播放 - liehuo.net</title><meta http-equiv="Content-Type" content="text/html; charset=GBK" /><meta name="keywords" content="jQuery plugin,jQuery,jQuery实例" /><meta name="description" content="jQuery.slide.5.0在jQuery.slide.4.0的基础上增加自己定义步长功能,具有自动切换播放功能,支持左右点击的切换循环播放的图片切换插件,方便调用。" /><style type="text/css">*{padding:0;margin:0;}body { text-align:left; padding:1em 0; font-size:12px; color:#000000;font-family:Arial,sans-serif; }.title,.footer{padding:10px;}/* image slide show */#filmstrip { clear:both; height:138px; background:transparent url(http://www.wfuyu.com/uploads/allimg/1004/film_bg.jpg) repeat-x scroll 0 0; width:618px; }#filmstrip a, #filmstrip a:visited { color:#216B8A; float:left; display:block; width:120px; text-align:center; margin-top:1px; padding:10px; height:127px; }#filmstrip .clip { height:136px; overflow:hidden; position:relative; z-index:2; float:left; width:560px; }#filmstrip a span { display:block; }#filmstrip a span img { border:1px solid #ccc; margin-bottom:7px; }#filmstrip a.selected, #filmstrip a:visited.selected { color:#000; text-decoration:none; background:#FFF; font-weight:bold; width:118px; border-left:1px solid #ccc; border-right:1px solid #ccc; }#filmstrip a:hover { background:#FFFFFF; }#filmstrip a#leftarrow { width:29px; background:url(http://www.wfuyu.com/uploads/allimg/1004/arrow_left.jpg) top left; margin:0; padding:0; height:137px; }#filmstrip a#rightarrow { width:29px; background:url(http://www.wfuyu.com/uploads/allimg/1004/arrow_right.jpg) top left; margin:0; padding:0; height:137px; float:left; }#filmstrip a#leftarrow.on, #filmstrip a#rightarrow.on { background-position:-29px; cursor:pointer; }</style><script src="http://www.wfuyu.com/uploads/Common/js/jquery-1.3.2.js" type="text/javascript" language="javascript" charset="GBK"></script><script type="text/javascript" src="http://www.wfuyu.com/uploads/Common/js/jquery.slide.5.0.js"></script><script type="text/javascript">$(document).ready(function() {var slide = new rady.ui.slide({showContain:"#thumblist",itemContain: ".thumbitem a",containSize: 4, //盒子大小leftMove: "#leftarrow",rightMove: "#rightarrow",auto:2,step:2})})</script></head><body><h1 class="title">jQuery.slide.5.0图片集效果,自动切换播放</h1><div id="filmstrip"><a class="on" id="leftarrow"></a><div class="clip"><div id="thumblist" class="thumblist"></div><div class="thumbitem hide"><a href="http://www.wfuyu.com/?demo=18399"><span><img src="http://www.wfuyu.com/uploads/common/images/liehuonet_400x345_1.jpg" height="78" width="110" /></span>lady gaga 001</a><a href="http://www.wfuyu.com/?demo=18370"><span><img src="http://www.wfuyu.com/uploads/common/images/liehuonet_400x345_2.jpg" height="78" width="110" /></span>lady gaga 002</a><a href="http://www.wfuyu.com/?demo=18356"><span><img src="http://www.wfuyu.com/uploads/common/images/liehuonet_400x345_3.jpg" height="78" width="110" /></span>lady gaga 003</a><a href="http://www.wfuyu.com/?demo=18322"><span><img src="http://www.wfuyu.com/uploads/common/images/liehuonet_400x345_4.jpg" height="78" width="110" /></span>lady gaga 004</a><a href="http://www.wfuyu.com/?demo=18282"><span><img src="http://www.wfuyu.com/uploads/common/images/liehuonet_400x345_5.jpg" height="78" width="110" /></span>lady gaga 005</a><a href="http://www.wfuyu.com/?demo=17924"><span><img src="http://www.wfuyu.com/uploads/common/images/liehuonet_400x345_6.jpg" height="78" width="110" /></span>lady gaga 006</a><a href="http://www.wfuyu.com/?demo=17920"><span><img src="http://www.wfuyu.com/uploads/common/images/liehuonet_400x345_7.jpg" height="78" width="110" /></span>lady gaga 007</a><a href="http://www.wfuyu.com/?demo=17917"><span><img src="http://www.wfuyu.com/uploads/common/images/liehuonet_400x345_8.jpg" height="78" width="110" /></span>lady gaga 008</a><a href="http://www.wfuyu.com/?demo=17913"><span><img src="http://www.wfuyu.com/uploads/common/images/liehuonet_400x345_9.jpg" height="78" width="110" /></span>lady gaga 009</a><a href="http://www.wfuyu.com/?demo=17908"><span><img src="http://www.wfuyu.com/uploads/common/images/liehuonet_400x345_10.jpg" height="78" width="110" /></span>lady gaga 010</a></div></div><a class="on" id="rightarrow"></a></div><div class="footer">更多jQuery实例内容请关注<a href="http://www.wfuyu.com" title="">学院</a></div></body></html><br /><center>如不能显示效果,请按Ctrl+F5刷新本页,更多网页代码:<a href='http://www.wfuyu.com/' target='_blank'>http://www.wfuyu.com/</a></center>提示:可修改后代码再运行!
上一篇 如何让新站在最短的时间内被搜索引擎收录
下一篇 Access数据库技术(24)