jquery图片加拿大PC28网站巅峰国际下载页面在哪入口无缝滚动代码T字形无缝滚动效果
一款简单的jQuery无缝滚动代码。一款简单的jQuery无缝滚动代码。
html代码
<!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><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>jquery图片T字形无缝滚动代码 - bokequ.com</title><meta name="description" content="jquery图片无缝滚动插件制作左右无缝滚动图片和上下无缝滚动图片,jquery图片无巅峰国际下载页面在哪缝滚动插件制作左右无缝滚动图片和上下无缝滚动图片,加拿大PC28网站入口jquery图片无缝滚动代码T字形无缝滚动效果," /></head><body><script src="http://www.bokequ.com/show/imgscroll/js/jquery-1.4.2.min.js" type="text/javascript"></script><script type="text/javascript">//图片滚动 调用方法 imgscroll({speed: 30,amount: 1,dir: "up"});$.fn.imgscroll = function(o){ var defaults = { speed: 40, amount: 0, width: 1, dir: "left" }; o = $.extend(defaults, o); return this.each(function(){ var _li = $("li", this); _li.parent().parent().css({overflow: "hidden", position: "relative"}); //div _li.parent().css({margin: "0", padding: "0", overflow: "hidden", position: "relative", "list-style": "none"}); //ul _li.css({position: "relative", overflow: "hidden"}); //li if(o.dir == "left") _li.css({float: "left"}); //初始大小 var _li_size = 0; for(var i=0; i<_li.size(); i++) _li_size += o.dir == "left" ? _li.eq(i).outerWidth(true) : _li.eq(i).outerHeight(true); //循环所需要的元素 if(o.dir == "left") _li.parent().css({width: (_li_size*3)+"px"}); _li.parent().empty().append(_li.clone()).append(_li.clone()).append(_li.clone()); _li = $("li", this); //滚动 var _li_scroll = 0; function goto(){ _li_scroll += o.width; if(_li_scroll > _li_size) { _li_scroll = 0; _li.parent().css(o.dir == "left" ? { left : -_li_scroll } : { top : -_li_scroll }); _li_scroll += o.width; } _li.parent().animate(o.dir == "left" ? { left : -_li_scroll } : { top : -_li_scroll }, o.amount); } //开始 var move = setInterval(function(){ goto(); }, o.speed); _li.parent().hover(function(){ clearInterval(move); },function(){ clearInterval(move); move = setInterval(function(){ goto(); }, o.speed); }); });};</script><style type="text/css">*{margin:0;padding:0;list-style-type:none;}a,img{border:0;}body{font:12px/180% Arial, Helvetica, sans-serif, "新宋体";}/* scrollleft */.scrollleft{width:789px;padding:5px 20px 0px 20px;margin:20px auto;}.scrollleft li{float:left;margin-right:7px;display:inline;width:158px;text-align:center;line-height:19px}.scrollleft img{width:136px;height:100px;padding:10px;border:solid 1px #ddd;}/* scrolltop */.scrolltop{width:158px;height:438px;overflow:hidden;margin:20px auto;}.scrolltop li{height:156px;overflow:hidden;text-align:center;line-height:19px}.scrolltop img{width:136px;height:100px;padding:10px;border:solid 1px #ddd;}</style><div class="scrollleft"> <ul> <li> <a href="http://m.bokequ.com/guoman/douluo"><img width="136" height="100" alt="斗罗大陆动漫壁纸" src="http://www.bokequ.com/show/imgscroll/images/006pnshIgy1foj6tecjf2j31hc0u04cf.jpg"/></a> <span>斗罗大陆动漫壁纸</span> </li>http://www.bokequ.com/show/imgscroll/images/006pnshIgy1foj6tecjf2j31hc0u04cf.jpg <li> <a href="http://m.bokequ.com/guoman/douluo"><img width="136" height="100" alt="斗罗大陆动漫壁纸" src="http://www.bokequ.com/show/imgscroll/images/006pnshIly1fsszkana91j31hc0u0k1b.jpg"/></a> <span>斗罗大陆动漫壁纸</span> </li> <li> <a href="http://m.bokequ.com/guoman/douluo"><img width="136" height="100" alt="斗罗大陆动漫壁纸图片" src="http://www.bokequ.com/show/imgscroll/images/006pnshIgy1fqbzd6by06j31hc0u0k16.jpg"/></a> <span>斗罗大陆动漫壁纸</span> </li> <li> <a href="http://m.bokequ.com/guoman/douluo"><img width="136" height="100" alt="斗罗大陆动漫壁纸图片" src="http://www.bokequ.com/show/imgscroll/images/006pnshIgy1fq3wokdifij31hc0u0dv7.jpg"/></a> <span>斗罗大陆动漫壁纸</span> </li> </ul></div><div class="scrolltop"> <ul> <li> <a href="http://m.bokequ.com/guoman/douluo"><img width="136" height="100" alt="斗罗大陆动漫壁纸图片" src="http://www.bokequ.com/show/imgscroll/images/006pnshIgy1fwmm0czf8nj31hc0u049x.jpg"/></a> <span>斗罗大陆动漫壁纸图片</span> </li> <li> <a href="http://m.bokequ.com/guoman/douluo"><img width="136" height="100" alt="斗罗大陆动漫壁纸" src="http://www.bokequ.com/show/imgscroll/images/006pnshIgy1fwmm0dhd2wj31hc0u0gu5.jpg"/></a> <span>斗罗大陆动漫壁纸图片</span> </li> <li> <a href="http://m.bokequ.com/guoman/douluo"><img width="136" height="100" alt="斗罗大陆动漫壁纸图片" src="http://www.bokequ.com/show/imgscroll/images/006pnshIgy1fvsgvuhjw7j31hc0u07wh.jpg"/></a> <span>斗罗大陆动漫壁纸图片</span> </li> <li> <a href="http://m.bokequ.com/guoman/douluo"><img width="136" height="100" alt="斗罗大陆动漫壁纸图片" src="http://www.bokequ.com/show/imgscroll/images/006pnshIgy1frwlp2gce9j31hc0u0k6d.jpg"/></a> <span>斗罗大陆动漫壁纸图片</span> </li> </ul></div><script type="text/javascript">$(document).ready(function(){ $(".scrollleft").imgscroll({ speed: 40, //图片滚动速度 amount: 0, //图片滚动过渡时间 width: 1, //图片滚动步数 dir: "left" // "left" 或 "up" 向左或向上滚动 }); $(".scrolltop").imgscroll({ speed: 40, //图片滚动速度 amount: 0, //图片滚动过渡时间 width: 1, //图片滚动步数 dir: "up" // "left" 或 "up" 向左或向上滚动 }); });</script> </body></html>
js图片左滚动和向上滚动无缝对接效果演示地址http://www.bokequ.com/show/imgscroll/
js图片向左滚巅峰国际下载页面在哪动和向上滚动无缝对接效果演示。加拿大PC28网站入口- 最近发表
-
- 个人博客网站常用优化内容方法
- 小米智能门锁2指静脉增强版震撼登场:AI猫眼+可视大屏,安全又便捷,仅售1699元!
- dedecms文章栏目列表页标题增加序号
- JavaScript简单返回顶部代码实例
- css中position属性定位:absolute与relative
- TON Defies Market Sentiment With a Massive 23% Surge, BTC Slumps Toward $70K (Market Watch)
- 爱奇艺qsv/腾讯视频qlv/优酷视频kux格式转换MP4
- WordPress免插件实现文章代码高亮方法
- 大旗发帖助手下载/使用教程
- WordPress插件Ultimate Category Excluder排除分类文章
- 随机阅读
-
- 鼠标控制图片左右无缝滚动js特效
- 易优eyoucms模板源码安装教程
- 知麻Z2 MINI投影仪限时特价!秒杀价仅需764.15元,真香!
- 知麻Z2 MINI投影仪限时特价!秒杀价仅需764.15元,真香!
- jQuery鼠标点击弹出分享按钮代码
- 科沃斯T50 Pro扫拖机器人水箱版,3999元降至2235元,百亿补贴优惠不妥协
- 卡通男女电筒404错误页面动画
- 小米米家推出折叠偏光近视太阳镜,轻巧便携又护眼,仅售199元!
- 科沃斯T50 Pro扫拖机器人水箱版,3999元降至2235元,百亿补贴优惠不妥协
- 2024龙年除夕跨年烟花html代码大全
- html+js简洁的音乐播放器,总有一款适合你
- 小米米家扫拖机器人 M40 S 上市:升降导航、大吸力清洁新体验,2999元起,智能家居新选择!
- 帝国CMS内容链接百度主动推送插件BDPush ProV1.1
- Crypto Markets in Retreat: BTC Losses $70K, WIF Plummets 11% Daily (Market Watch)
- TON Defies Market Sentiment With a Massive 23% Surge, BTC Slumps Toward $70K (Market Watch)
- OpenAI与Jony Ive联手打造AI硬件:未来科技饰品,明年亮相?
- WordPress博客分类目录内容不在首页显示方法
- 帝国cms如何设置会员注册邮箱验证
- HTML5+CSS3实现列表式音乐播放器特效源码
- 小米户外摄像头大升级:500万像素3K画质,高清看得见,199元带回家
- 搜索
-
- 友情链接
-