if (this.dom) //if modern browsers such as Firefox, IE5 this.startit() else{ this.nextimgidx setInterval("iss[" this.issid "].rotateimg()", this.delay) } }
inter_slide.prototype.rotateimg=function(){ if(this.dom){ var cimg=this.go('theimg' this.nextimgidx '_' this.issid)? this.go('theimg' this.nextimgidx '_' this.issid) : null; if(cimg&&typeof cimg.complete=='boolean'&&!cimg.complete){ var cacheobj=this clearTimeout(this.loading) this.loading=setTimeout(function(){cacheobj.rotateimg()}, 300) return; } if (this.mouseovercheck==1){ var cacheobj=this clearTimeout(this.mousep) this.mousep=setTimeout(function(){cacheobj.rotateimg()}, 100) return; } if(this.fade) this.resetit() var crossobj=this.tempobj=this.go(this.curcanvas) crossobj.style.zIndex var othercanvas=this.curcanvas==this.canvasbase "_0"? this.go(this.canvasbase "_1") : this.go(this.canvasbase "_0"); othercanvas.style.zIndex=0; if(this.descriptions) this.go('imgdsc' this.issid).innerHTML = this.imgs[this.keeptrack()][1]; if(this.counter){ var padit=''; for (var p=0; ppadit ='0'; this.go('thecnt' this.issid).innerHTML = padit (this.keeptrack()} if (this.jumpto) this.go('goto' this.issid).value=this.keeptrack()this.jumperidx=this.keeptrack()var fadeobj=this clearInterval(this.fadeclear) this.fadeclear=setInterval(function(){fadeobj.fadepic()},50) this.curcanvas=(this.curcanvas==this.canvasbase "_0")? this.canvasbase "_1" : this.canvasbase "_0" } else{ var v4imgobj=document.images['defaultslide' this.issid] v4imgobj.src=this.postimgs[this.nextimgidx].src this.nextimgidx=(this.nextimgidx} }
inter_slide.prototype.resetit=function(){ this.degree=10 var crossobj=this.go(this.curcanvas) if (crossobj.filters&&crossobj.filters[0]){ if (typeof crossobj.filters[0].opacity=="number") //if IE6 crossobj.filters(0).opacity=this.degree else //else if IE5.5- crossobj.style.filter="alpha(opacity=" this.degree ")" } else if (crossobj.style.MozOpacity) crossobj.style.MozOpacity=this.degree/101 else if (crossobj.style.KhtmlOpacity) crossobj.style.KhtmlOpacity=this.degree/100 else if (crossobj.style.opacity&&!crossobj.filters) crossobj.style.opacity=this.degree/101 }
inter_slide.prototype.startit=function(){ this.playing=1 var crossobj=this.go(this.curcanvas) this.populateslide(crossobj, this.nextimgidx) if (this.pausecheck==1){ //if slideshow should pause onmouseover var cacheobj=this var crossobjcontainer=this.go("master" this.issid) crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1} crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0} } this.rotateimg() if(this.no_auto) this.gostop(); else if(this.man_start) this.gostop(this.go('gostp' this.issid)); else if(this.ics&&document.body.filters){ //kludge for IE5.5 bug this.buttons(false); } }
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn