i) To get that effect, simply place a solid color (that matches the background color) image in between them in the array. This 'dummy' image may even be removed from the array after it is used the first time, if desired.
ii) http://www.dynamicdrive.com/forums/s...69&postcount=5 Some tweaking may be needed, depending upon your other requirements for the show(s) using this effect.
iii) The fade rate is controlled here:
Code:
inter_slide.prototype.fadepic=function(){
if (this.fade&&this.degree<100){
this.faded=0
this.degree+=10
if (this.tempobj.filters&&this.tempobj.filters[0]){
if (typeof this.tempobj.filters[0].opacity=="number") //if IE6+
this.tempobj.filters[0].opacity=this.degree
else //else if IE5.5-
this.tempobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (this.tempobj.style.MozOpacity)
this.tempobj.style.MozOpacity=this.degree/101
else if (this.tempobj.style.KhtmlOpacity)
this.tempobj.style.KhtmlOpacity=this.degree/100
else if (this.tempobj.style.opacity&&!this.tempobj.filters)
this.tempobj.style.opacity=this.degree/101
}
else{
this.faded=1
clearInterval(this.fadeclear)
this.nextcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_0" : this.canvasbase+"_1"
this.tempobj=this.go(this.nextcanvas)
if(this.playing)
this.changeimg()
}
}
valid values are 2, 5, 10, and 20. Smaller numbers are slower. And here:
Code:
this.fadeclear=setInterval(function(){fadeobj.fadepic()},50)
Use 20 or larger. Smaller numbers are faster. Some trial and error with various combinations of both values will likely be required to achieve both the desired speed and smoothness.
Please Note: When tweaking the fade rate in this manner, care should be taken not to have a fade rate that is longer than the interval between images.
Bookmarks