From a60489f74a03ce5cbf0c2b303b3615ad9da69ffc Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 22 Jul 2010 14:44:32 +0800 Subject: [PATCH] ux/Slideshow.js --- ux/Slideshow.js | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/ux/Slideshow.js b/ux/Slideshow.js index d09731d3bc..6d1a7a6591 100644 --- a/ux/Slideshow.js +++ b/ux/Slideshow.js @@ -61,9 +61,22 @@ Roo.apply(Roo.ux.Slideshow.prototype, { // The Fade Function - swapImage: function (x,y) { - $(this.slides[x]) && $(this.slides[x]).appear({ duration: this.duration }); - $(this.slides[y]) && $(this.slides[y]).fade({duration: this.duration }); + swapImage: function (x,y) { + if (this.slides[x] ) { + this.slides[x].animate( + { opacity : { from : 0.0, to : 1.0 }}, + this.duration + ); + this.slides[x].show(); + } + if (this.slides[y] ) { + this.slides[y].animate( + { opacity : { from : 1.0, to : 0.0 }}, + this.duration + ); + this.slides[y].show(); + } + }, // the onload event handler that starts the fading. -- 2.39.2