高手进来。问题可大了
2016-07-07 16:04 来源:www.chinab4c.com 作者:ecshop专家
;(function(){ var _noop = function(){}, slider = window.Slider = function(ops){ this.init(ops || {}); }; slider.prototype = { c**tructor : slider, _ops : { length : 4, shell : null, auto : false, autoStop : true, cName : 'left', duration : 200, unitSize : 500, delay : 5000, easing : 'swing', onplay : _noop, ondone : _noop, onbeforeplay : _noop }, init : function(ops){ var k, self = this, _ops = this._ops; for(k in _ops){ if(typeof ops[k] === 'undefined'){ ops[k] = _ops[k]; } } this.index = 0; this.ops = ops; if(ops.auto){ this.autoPlay(); ops.autoStop && ops.shell.hover(function(){ self.stopAuto(); }, function(){ self.autoPlay(); }); } }, play : function(inx){ inx = parseInt(inx, 10); inx = isFinite(inx) ? inx : this.index + 1; var ani = {}, self = this, ops = this.ops, shell = ops.shell, len = ops.length; inx = (inx < 0 ? len - 1 : inx) % len; if(!shell || !shell.animate || inx === this.index || ops.onbeforeplay.call(this, inx, this.index) === false) return this; ani[ops.cName] = -inx * ops.unitSize; shell.stop().animate(ani, ops.duration, ops.easing, function(){ ops.ondone.call(self, inx, self.index); self.index = inx; }); ops.onplay.call(self, inx, this.index); return this; }, next : function(){ return this.play(); }, prev : function(){ return this.play(this.index - 1); }, autoPlay : function(){ var self = this; this._timer = setTimeout(function(){ self.play().autoPlay(); }, this.ops.delay); }, stopAuto : function(){ window.clearTimeout(this._timer); } }; })(); 和官方的transport.js有冲突。无限求助 |
回答:
太好了!!!谢谢分享啊!!!顶顶!! |
请问要表达什么意思呢 |
最近更新
常用插件
- ecshop没登陆情况下订单查
ecshop没登陆情况下订单查询插件,主要是针对ecshop在没有登陆的情况下...
- ecshop虚拟发货插件
ecshop虚拟发货插件介绍: ecshop虚拟发货插件,主要为了通过后台手动录...
- ecshop订单聚合插件
ecshop订单聚合插件,主要是为了方便ecshop中订单产品到货情况的分析和...
- ecshop的oss插件
ecshop的oss插件免费共享了,oss,ecshoposs...
- ecshop注册审核插件
ecshop插件介绍:ecshop会员注册审核插件,主要是在前台提供给注册的时候...
ecshop热门问答
ecshop热门资料
ecshopEcfun
ecshop主页
ecshop淘宝商家
ecshop1161
ecshop发生错误
ecshop网页抽奖程序
ecshop用户留言
ecshop网站打不开
ecshop行货
ecshop广告添加问题
ecshop过来人
ecshopip限制
ecshop令人堪忧
zen cart电子晌午
ecshop支付Bug
ecshop戴尔
ecshop单价
ecshop卖否
ecshop设为0
ecmall注册短信
ecshop安装配送
ecshop闹心
ecshop小数点
ecshop客站
ecshopGmail
ecshop去除
ecshop自定义
ecshop康盛
ecshop兑换积分
ecshop聊天