Results 1 to 5 of 5

Thread: Random start to sequential slideshow

  1. #1
    Join Date
    Dec 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Random start to sequential slideshow

    Script Title: Ultimate Fade-in slideshow (v2.4)

    http://www.dynamicdrive.com/dynamici...nslideshow.htm

    First of all, this is a fantastic script. It's very close to what I need, but I'm looking for a slight adaptation. I've seen it discussed in this post, but it references v1.51, so the script has changed too much for this to work (I believe): http://www.dynamicdrive.com/forums/a...p/t-38352.html

    That's exactly what I'm looking for, though...a sequential slideshow that has a random beginning. So one time onload it might randomly choose slide3 as the first slide, then proceed to 5, 6, 7 through the end and start the sequence over. The next time the page is opened/refreshed, it might randomly choose slide 6 as the first slide, then proceed to slide 7, 8, 9 through the end and start the sequence over at 1, 2, etc.

    Any help you could give would be much appreciated! Thanks!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Actually v2.4 has such a feature built in already. Just set the "randomize" option within the "displaymode" setting to true:

    Code:
    displaymode: {type:'auto|manual', pause:milliseconds, cycles:0|integer, wraparound:true|false, randomize:true|false},
    DD Admin

  3. #3
    Join Date
    Dec 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your help. While that seemed to work at first, the slideshow doesn't always progress sequentially once the first image is randomly chosen. I've set it up at http://www.alpacabreeders.org/ with the ads/images at the top left of the content area. There are only 3 now, but will be 7 soon. Please forgive the pixilation...the client is sending better quality ads shortly .

    Anyway, my main concern is not so much having a random start to a sequential slideshow, but having a random slideshow that displays all of the available images before starting over again. For example, if it randomly chooses slide 2 to start with, I would like it to display slides 1, 3, 4, 5, 6 and 7 (in any order) before showing slide 2 again. It may be that a more complex script is needed, in which case, no worries. The script you have is a great one for photo slideshows, and I'm sure I'll use it again in other situations. Thanks again for your speedy reply and for a great script.

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmm I'm a little confused. The way the random feature of this script works is that it scrambles the order of the slides before showing them. It will still display all the available images within the slideshow before starting over again. For example, given the slides 1,2,3,4,5, with the random feature on, when the page loads, that order may now become 2,3,1,5,4. There are no duplication of any slides.
    Last edited by ddadmin; 12-22-2010 at 08:12 PM.
    DD Admin

  5. #5
    Join Date
    Dec 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I see what you're saying. That's working great. Thanks for explaining it.

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
  •