Results 1 to 7 of 7

Thread: Sequence Images in Shockwave Slideshow

  1. #1
    Join Date
    Aug 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Sequence Images in Shockwave Slideshow

    1) Script Title: Shockwave 3D Slideshow v0.9

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...wave/index.htm

    3) Describe problem: The images on the slideshow seem to be randomized. They are not appearing in the sequence they are called in the ImageArray. I tried a separate Preload images function thinking it was pulling the images in the sequence they finish fully loading, but that didn't seem to help either.

    I really need the show to end on the same image all the time.

    Ideas?

    Thanks so much!

    ~Barefoot Chris

  2. #2
    Join Date
    Aug 2004
    Posts
    9,897
    Thanks
    3
    Thanked 967 Times in 955 Posts
    Blog Entries
    15

    Default

    Does the problem occur on the DD script page as well for you, or just on your own page?
    DD Admin

  3. #3
    Join Date
    Aug 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It appears to occur in the demo as well. It's a bit hard to watch at the speed they rotate. However, the one that has a fixed number of loops (unhooked) ended on forrest. Village is last in the code, so shouldn't it end there?

    That's actually my main concern anyway--making sure it always stops on a specific slide.

  4. #4
    Join Date
    Aug 2004
    Posts
    9,897
    Thanks
    3
    Thanked 967 Times in 955 Posts
    Blog Entries
    15

    Default

    Ah, so just to clarify, the issue you're talking about here is the slideshow not always stopping at the very last slide, and not that the order of the slideshow is sometimes incorrect as far as 1st, 2nd, 3rd image shown etc?
    DD Admin

  5. #5
    Join Date
    Aug 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well, I suppose technically that is correct. But, it seems to me one is causing the other.

    If I have it set to only loop once, it should stop either at the last one or the first one in the code, neither of which it does consistently.

  6. #6
    Join Date
    Aug 2004
    Posts
    9,897
    Thanks
    3
    Thanked 967 Times in 955 Posts
    Blog Entries
    15

    Default

    Try disabling the persistence feature then (which remembers the last viewed slide and resumes from that one when the page is reloaded). Inside jquery.shockwave.js, find the below line:

    Code:
    var storedImageIndex = $.cookie(cookieImageIndex);
    and replace it with:

    Code:
    var storedImageIndex = 0;
    DD Admin

  7. #7
    Join Date
    Aug 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks. I think that worked.

    However, it's ending on the FIRST image, not the last (still works for me if it's consistent, though).

    I think I figured out the "issue." It's going through the same number of rotation/dissolves as the number of pictures (4 images = 4 changes). Hence, it is returning to the FIRST image to complete a loop.

    This also explains why before we turned off persistence it seemed more random....when remembering the previous end position, each loop would increment the "end" position by 1 image.

    So, perhaps the number of dissolves/changes per "loop" should be ONE LESS than the number of images.

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
  •