View Full Version : Continuous Reel Slideshow - Stop at Last Image?

09-21-2010, 09:17 PM
1) Script Title: Continuous Reel Slideshow

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/reelslideshow.htm

3) Describe problem: Does anyone have the coding to make the slideshow stop at the last image when the show is in 'manual' mode? I see there is code to stop the cycling after a certain number when in 'auto' mode, but what if I am using the back/forth buttons. I would like it not to continuously allow me to go through each image a thousand times, but stop at the last one.

Even better would be some sort of count down too, if someone knows how to do that too. It would be a great addition to this script!

09-23-2010, 09:48 PM
Can anyone help with this? At least does anyone know how to make this stop at the last slide?

09-23-2010, 11:58 PM
If all you need is to prevent the "next" button when clicked on to stop at the very last slide, try finding the below line inside the .js file, and add to it the following 2 lines in red:

if (keyword=="forth" && this.curslide==this.$imageslides.length-1)

09-27-2010, 09:55 PM
That is perfect! That is what I was trying to accomplished.

Where should I edit to do the same thing for the previous button?

It is possible to make the continue button turn grey or disappear at the end?

09-27-2010, 11:58 PM
Sure, try the following modified .js file then, which disables the "back" and "forth" pagination link from working when the user is at the beginning and end of the gallery, respectively. It also hides one of these two links accordingly. In order for the hiding to work, you should give your "back" link a CSS class of "wrapperidback", and the "forth" link a class of "wrapperforth", where "wrapperid" is the ID value of your DIV containing the gallery.

For example:

<a class="myreelback" href="javascript:firstreel.navigate('back')" style="margin-right:200px;">back</a> <a class="myreelforth" href="javascript:firstreel.navigate('forth')">forth</a>

09-28-2010, 06:22 PM
That worked great! You should probably post this entire modified version on the website. It is most beneficial.

10-11-2012, 07:50 PM
How do you get the slideshow to do just one auto cycle of images and stop on the last one.

I have 8 slides, the last one being a statement. I have set cycles to 1 but the slideshow goes back to slide number 1 and then stops. I want it to stop on slide 8.

10-11-2012, 11:25 PM
Please post a new thread for this question.