PDA

View Full Version : Go thru images once and stop on last image, without repeating first image...



mail@vinceg.com
08-03-2015, 03:47 PM
1) Script Title: Fade In Slide Show

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

3) Describe problem:
How can I configure FISS to go thru a list of images (A, B....G), and stop at G, without repeating A?
I set type to auto, cycles to 1, and wraparound to false...

If I use images A thru G, it will stop after it repeats A, which is not the desired end state. (ph4d.com/GoodmanTutor/RepeatFirst.htm)

If I include G as the first and last image, it will stop correctly, but it's not the desired beginning state (ph4d.com/GoodmanTutor/RepeatLast.htm)

Have tried all the combinations of type, cycles and wraparound....

Any help is much appreciated...

vince g.

ddadmin
08-03-2015, 06:15 PM
Try adding the line in red to the existing line below inside the .js file:


setting.totalsteps=setting.imagearray.length*(setting.displaymode.cycles>0? setting.displaymode.cycles : Infinity) //Total steps limit (applicable in displaymode='auto' only w/ cycles>0)
setting.totalsteps-=1

mail@vinceg.com
08-03-2015, 06:39 PM
@ddadmin

Found this post in a thread from 2010 http://www.dynamicdrive.com/forums/showthread.php?51915-Ultimate-Fade-in-slideshow-(v2-1)-stop-on-last-image&p=217281#post217281, qand your solution worked perfectly... A big thank you!!5704

vince g