kencl
01-21-2010, 11:17 PM
1) Script Title: Ultimate Fade-in slideshow (v2.1)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
3) Describe problem: I could use some help putting 2 instances of the slideshow on a single page so that 1) the "pause" is 4 seconds on each of them, and 2) there is precisely 2 seconds between the time one changes slides and the other one does.
First, I preloaded all 24 slideshow images with a simple:
var theSlides = new Array(24);
theSlides[0] = new Image; theSlides[0].src = "http://website.com/Graphics/Slideshow/slide1.jpg";
theSlides[1] = new Image; theSlides[1].src = "http://website.com/Graphics/Slideshow/slide2.jpg";
// snip
theSlides[23] = new Image; theSlides[23].src = "http://website.com/Graphics/Slideshow/slide24.jpg";
Then I wrapped the instantiation of each new fadeSlideShow object within a function so I could call the first then 2 seconds later call the second:
function Start_Slideshow_One() {
var mygallery=new fadeSlideShow({ params });
}
function Start_Slideshow_Two() {
var mygallery2=new fadeSlideShow({ params });
}
// start first slideshow then 2 seconds later start the second one
Start_Slideshow_One();
var wait2secs = setTimeout("Start_Slideshow_Two()", 2000);
That didn't work out so I guessed that maybe the instantiation process is time consuming, so I moved the 2 second delay timer into the first function wrapper so that the second function is called before the object instantiation:
function Start_Slideshow_Two() {
var mygallery2=new fadeSlideShow({ params });
}
function Start_Slideshow_One() {
var wait2secs = setTimeout("Start_Slideshow_Two()", 2000);
var mygallery=new fadeSlideShow({ params });
}
Start_Slideshow_One();
Neither of these approaches seems to work. Anyone else have any ideas (including telling me to use a different slideshow script ;0
Thanks in advance!
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
3) Describe problem: I could use some help putting 2 instances of the slideshow on a single page so that 1) the "pause" is 4 seconds on each of them, and 2) there is precisely 2 seconds between the time one changes slides and the other one does.
First, I preloaded all 24 slideshow images with a simple:
var theSlides = new Array(24);
theSlides[0] = new Image; theSlides[0].src = "http://website.com/Graphics/Slideshow/slide1.jpg";
theSlides[1] = new Image; theSlides[1].src = "http://website.com/Graphics/Slideshow/slide2.jpg";
// snip
theSlides[23] = new Image; theSlides[23].src = "http://website.com/Graphics/Slideshow/slide24.jpg";
Then I wrapped the instantiation of each new fadeSlideShow object within a function so I could call the first then 2 seconds later call the second:
function Start_Slideshow_One() {
var mygallery=new fadeSlideShow({ params });
}
function Start_Slideshow_Two() {
var mygallery2=new fadeSlideShow({ params });
}
// start first slideshow then 2 seconds later start the second one
Start_Slideshow_One();
var wait2secs = setTimeout("Start_Slideshow_Two()", 2000);
That didn't work out so I guessed that maybe the instantiation process is time consuming, so I moved the 2 second delay timer into the first function wrapper so that the second function is called before the object instantiation:
function Start_Slideshow_Two() {
var mygallery2=new fadeSlideShow({ params });
}
function Start_Slideshow_One() {
var wait2secs = setTimeout("Start_Slideshow_Two()", 2000);
var mygallery=new fadeSlideShow({ params });
}
Start_Slideshow_One();
Neither of these approaches seems to work. Anyone else have any ideas (including telling me to use a different slideshow script ;0
Thanks in advance!