/* Continuous Reel Slideshow * Created: Aug 18th, 2010 by DynamicDrive.com. This notice must stay intact for usage * Author: Dynamic Drive at http://www.dynamicdrive.com/ * Visit http://www.dynamicdrive.com/ for full source code */ jQuery.noConflict() function reelslideshow(options){ var $$=jQuery this.setting={displaymode:{type:'auto', pause:2000, cycles:2, pauseonmouseover:true}, orientation:'h', persist:true, slideduration:500} //default settings jQuery.extend(this.setting, options) //merge default settings with options var curslide=(this.setting.persist)? reelslideshow.routines.getCookie("slider-"+this.setting.wrapperid) : 0 this.curslide=(curslide==null || curslide>this.setting.imagearray.length-1)? 0 : parseInt(curslide) //make sure curslide index is within bounds this.curstep=0 this.zIndex=1 this.animation_isrunning=false //variable to indicate whether an image is currently being slided in this.posprop=(this.setting.orientation=="h")? "left" : "top" options=null var slideshow=this, setting=this.setting, preloadimages=[], slidesHTML='' for (var i=0; ithis.$$imageslides.length-1)? 0 : targetslide //wrap around if (this.animation_isrunning==false) this.slide(targetslide, dir) }, rotate:function(){ var slideshow=this if (this.ismouseover){ //pause slideshow onmouseover this.rotatetimer=setTimeout(function(){slideshow.rotate()}, this.setting.displaymode.pause) return } var nextslide=(this.curslide' : '' //hyperlink slide? layerHTML+='' layerHTML+=(imgref[1])? '' : '' return '
' +'
' +layerHTML +'
' //return HTML for this layer }, getCookie:function(Name){ var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair if (document.cookie.match(re)) //if cookie found return document.cookie.match(re)[0].split("=")[1] //return its value return null }, setCookie:function(name, value){ document.cookie = name+"=" + value + ";path=/" }, createobj:function(){ var obj={} for (var i=0; i