View Full Version : Fade Slide Show - Add text to describe image

09-27-2008, 07:09 PM
1) Script Title: FadeSlideShow

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

3) Describe problem: No Problem just want another enhancement

Any way to put a text describing the image / ad on top or bottom of image and center text on image?

This is by far the best customizable / flexible script I have come across.

How does Random work ... tried the "R" for random but the pictures still load in sequence after the initial image load. Should the image load in any random sequence and not repeat a sequence.

I loaded 5 numbered images displaying the numbers 1, 2, 3, 4, 5 and there seems to be a pattern so I think random does not totally function or I could be wrong on how it should work.

09-28-2008, 11:20 AM
Use Swiss Army:


It already has that feature, plus tons of other options.

It also does random. And to answer that part of your question, the randomizing code:

theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)

Does not produce a perfectly randomized array in that it tends to favor certain combinations over others, but it will eventually produce all possible recombinations if run enough times - very good considering its low overhead. And it is only run once per slide show per page load. So, once the show is randomized by it, the 'new' random order will repeat until the show is reloaded.

Also, remember that random means random, so any particular order (even the original one) may result after any given use of the randomizing code.

If you are not seeing any randomization though, perhaps you've configured the script incorrectly.