PDA

View Full Version : Random images on Fade-in slide show?



lilyoungfella
06-18-2008, 05:51 AM
1) Script Title:
Ultimate Fade-in slide show
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
3) Describe problem:

would it be possible to randomize image?... instead of a fixed order?

ddadmin
06-18-2008, 07:27 AM
Errr this is supported by default already. Per the instructions on the script page:


new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause, optionalRandomOrder)

1. IMAGES_ARRAY_NAME: The name of the image array (inside script of Step 1) containing the images to display for this slideshow (ie: "fadeimages".
2. slideshow_width: The width of the slideshow container (implied in px). Set it to accommodate the largest image within the slideshow.
3. slideshow_height: The height of the slideshow container (implied in px). Set it to accommodate the largest image within the slideshow.
4. borderwidth: The width of the border, such as 0, 1 etc.
5. delay: Delay between image change, in milliseconds (ie: 3000 = 3 seconds).
6. pause: Specify whether slideshow should pause (not rotate) while the mouse is over it. 1=yes, 0=no.
7. optionalRandomOrder: An optional parameter specifying whether to "randomize" the display order of the images. Set it to "R" to randomize, or remove this parameter (unset) to not.

flyingship
07-30-2009, 04:01 PM
Thank you for this script - it's a lifesaver!