Results 1 to 2 of 2

Thread: Fade Slide Show - Add text to describe image

  1. #1
    Join Date
    Dec 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Fade Slide Show - Add text to describe image

    1) Script Title: FadeSlideShow

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nslideshow.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.
    Last edited by giban; 09-27-2008 at 07:28 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Use Swiss Army:

    http://www.dynamicdrive.com/dynamici...army/index.htm

    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:

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •