文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > slides.min.jquery.js
侵权投诉

slides.min.jquery.js

/* * Slides, A Slideshow Plugin for jQuery * Intructions: doc.guandang.net * By: Nathan Searles, doc.guandang.net * Version: 1.0.7 * Updated: December 29th, 2010 * Download by doc.guandang.net * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * doc.guandang.net * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ (function($){$.fn.slides=function(option){option=$.extend({},$.fn.slides.option,option);return this.each(function(){$('.'+option.container,$(this)).children().wrapAll('<div class="slides_control"/>');var elem=$(this),control=$('.slides_control',elem),total=control.children().size(),width=control.children().outerWidth(),height=control.children().outerHeight(),start=option.start-1,effect=option.effect.indexOf(',')<0?option.effect:option.effect.replace(' ','').split(',')[0],paginationEffect=option.effect.indexOf(',')<0?effect:option.effect.replace(' ','').split(',')[1],next=0,prev=0,number=0,current=0,loaded,active,clicked,position,direction;if(total<2){return;} if(start<0){start=0;};if(start>total){start=total-1;};if(option.start){current=start;};if(option.randomize){control.randomize();} $('.'+option.container,elem).css({overflow:'hidden',position:'relative'});control.css({position:'relative',width:(width*3),height:height,left:-width});control.children().css({position:'absolute',top:0,left:width,zIndex:0,display:'none'});if(option.autoHeight){control.animate({height:control.children(':eq('+start+')').outerHeight()},option.autoHeightSpeed);} if(option.preload&&control.children()[0].tagName=='IMG'){elem.css({background:'url('+option.preloadImage+') no-repeat 50% 50%'});var img=$('img:eq('+start+')',elem).attr('src')+'?'+(new Date()).getTime();$('img:eq('+start+')',elem).attr('src',img).load(function(){$(this).fadeIn(option.fadeSpeed,function(){$(this).css({zIndex:5});elem.css({background:''});loaded=true;});});}else{control.children(':eq('+start+')').fadeIn(option.fadeSpeed,function(){loaded=true;});} if(option.bigTarget){control.children().css({cursor:'pointer'});control.children().click(function(){animate('next',effect);return false;});} if(option.hoverPause&&option.play){control.children().bind('mouseover',function(){stop();});control.children().bind('mouseleave',function(){pause();});} if(option.generateNextPrev){$('.'+option.container,elem).after('<a href="#" class="'+option.prev+'">Prev</a>');$('.'+option.prev,elem).after('<a href="#" class="'+option.next+'">Next</a>');} $('.'+option.next,elem).click(function(e){e.preventDefault();if(option.play){pause();};animate('next',effect);});$('.'+option.prev,elem).c

第1页

你可能喜欢

热门文档

相关文档

  • 左右控制的图片幻灯切换效...

    jquery-1.4.4.min.js"></script > <script src="http://www.zzsky.cn/effect/images/201102162300/slides.min.jquery.js"></script > <script language=...

  • 带左右按钮jquery特效代码

    //www.face100.net/js/jquery-1.4.4.min.js"></script> <script src="http://www.face100.net/js/slides.min.jquery.js"></script> <script> $(...

  • jquery.validate.min.js

    jquery.validate.min.js_IT/计算机_专业资料 暂无评价0人阅读0次下载举报文档 jquery.validate.min.js_IT/计算机_专业资料。jquery ;常用的javascript 脚本。...

  • jquery实现图片翻转特效

    {width:570px;height:270px;} JS: (function(a){a.fn.slides=function(b...(jQuery) $(function(){ $('#slides').slides({ preload: true, ...

  • jQuery实现图片轮播

    jquery/1.4.2/jquery.min.js"></script> </head> <body> <!--*幻灯开始*--> <div class="CustomSlide"> <div class="slides" align="center"> <...

  • div+Css样式

    js/jquery-1.4.4.min.js"></script> <script src="js/slides.min.jquery.js"></script> <script src="js/huandeng.js"></script> <script src="js...

  • highcharts...

    //jsfiddle.net/gh/get/jquery/1.7.2/highslidesoftware/highcharts.com/...[] title labels max null min gridLineColor gridLineWidth lineColor lineWidth ...

  • 实例详细讲解将PS...

    jQuery-1.4.2.min.js"></script> <script type="text/javascript" src="...('#slider .slides').nivoSlider({ 05 effect: 'random', 06 directionNav:...

  • Jquery插件—Cycle Plugin插件实现图片循环播放等

    src="jquery.js"></script> <script type="text...Timeout=this.cyclePause=0;var $slides=opts....(curr,next,opts,true,false);opts.ani mIn....

  • DOCTYPE html PUBLIC

    src="js/jquery-1.4.4.min.js"></script> <script src="js/slides.min.jquery.js"></script> </head> <body> <div id="fa_top"></div> <div ...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email