预览加载中,请您耐心等待几秒...
1/7
2/7
3/7
4/7
5/7
6/7
7/7

在线预览结束,喜欢就下载吧,查找使用更方便

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

//先引用这个JS文件 var$$=function(id){ return"string"==typeofid?document.getElementById(id):id; }; varforEach=function(array,callback,thisObject){ if(array.forEach){ array.forEach(callback,thisObject); }else{ for(vari=0,len=array.length;i<len;i++){callback.call(thisObject,array[i],i,array);} } } varExtend=function(destination,source){ for(varpropertyinsource){ destination[property]=source[property]; } returndestination; } varCurrentStyle=function(element){ returnelement.currentStyle||document.defaultView.getComputedStyle(element,null); } varBind=function(object,fun){ varargs=Array.prototype.slice.call(arguments).slice(2); returnfunction(){ returnfun.apply(object,args.concat(Array.prototype.slice.call(arguments))); } } varTween={ Quart:{ easeOut:function(t,b,c,d){ return-c*((t=t/d-1)*t*t*t-1)+b; } }, Back:{ easeOut:function(t,b,c,d,s){ if(s==undefined)s=1.70158; returnc*((t=t/d-1)*t*((s+1)*t+s)+1)+b; } }, Bounce:{ easeOut:function(t,b,c,d){ if((t/=d)<(1/2.75)){ returnc*(7.5625*t*t)+b; }elseif(t<(2/2.75)){ returnc*(7.5625*(t-=(1.5/2.75))*t+.75)+b; }elseif(t<(2.5/2.75)){ returnc*(7.5625*(t-=(2.25/2.75))*t+.9375)+b; }else{ returnc*(7.5625*(t-=(2.625/2.75))*t+.984375)+b; } } } } //容器对象,滑动对象,切换数量 varSlideTrans=function(container,slider,count,options){ this._slider=$$(slider); this._container=$$(container);//容器对象 this._timer=null;//定时器 this._count=Math.abs(count);//切换数量 this._target=0;//目标值 this._t=this._b=this._c=0;//tween参数 this.Index=0;//当前索引 this.SetOptions(options); this.Auto=!!this.options.Auto; this.Duration=Math.abs(this.options.Duration); this.Time=Math.abs(this.options.Time); this.Pause=Math.abs(this.options.Pause); this.Tween=this.options.Tween; this.onStart=this.options.onStart; this.onFinish=this.options.onFinish; varbVertical=!!this.options.Vertical; this._css=bVertical?"top":"left";//方向 //样式设置 varp=CurrentStyle(this._container).position; p=="relative"||p=="absolute"||(this._container.style.position="relative"); this._container.style.overflow="hidden"; t