Hi everyone,
I am in midst of doing a website and have used the Image Slideshow from the Widget Browser as a component of my website. During the development of my site, I realised that the Image Slideshow only start to Autoplay and rotate images with 3 or more images. The slideshow just refuse to work when I have 2 images. Can someone advise me what to do when there is only 2 images? I haved tried looking through the scripts and cannot find a solution. It is giving me a big headache as I am so close to completion but got stucked with this.
Big thanks in advance! ![]()
try put on line 456 class SpryImageSlideShow.js
if(slideIndex==0){
self.removeClassName(self.element, self.slideShowBusy);
self.showSlide(self.defaultSlide);
self.isReady = true;
}
if(slideIndex==1){
self.removeClassName(self.element, self.slideShowBusy);
self.showSlide(self.defaultSlide);
if (self.autoPlay)
self.play();
self.isReady = true;
}
sorry, in my implantation, to be better, insert a "else" before the code.
(i'm not a java script programmer, because that this jerry-rig)
like on line 456 class SpryImageSlideShow.js:
else{
if(slideIndex==0){
self.removeClassName(self.element, self.slideShowBusy);
self.showSlide(self.defaultSlide);
self.isReady = true;
}
if(slideIndex==1){
self.removeClassName(self.element, self.slideShowBusy);
self.showSlide(self.defaultSlide);
if (self.autoPlay)
self.play();
self.isReady = true;
}
}
North America
Europe, Middle East and Africa
Asia Pacific