Results 1 to 6 of 6

Thread: Fade-in SlideShow -how to stop it

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

    Default Fade-in SlideShow -how to stop it

    1) Script Title:
    Fade-in slideshow
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...nslideshow.htm
    3) Describe problem: how to stop it?

    Is there a way to make it stop running after showing the last image? I'm comfortable using this script, and hate the idea of having the find and start over with a new one to get the job done.

    Thanks,
    Trace

  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

  3. #3
    Join Date
    Jul 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Still Not Stopping

    Thanks for your reply and pointing me to the thread, but no go yet.

    One thread pointed to another, and another and another. All I ended up with was the the slideshow not starting without first clicking it; so I ditched that script. Then I tried just adding the below in the original (but that didn't stop it either):

    obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
    if(obj.flag){
    obj.mouseclickcheck=1
    obj.flag=0
    }
    if(obj.nextimageindex==obj.postimages.length-1)
    obj.flag=1
    obj.populateslide(obj.tempobj, obj.nextimageindex)

    I changed the length to 2 as suggested, but it changed nothing with stopping the slideshow.

    I want to automatically start, and automatically stop after rotating through the images only once. It would be nice if they could restart it (but I don't want them to have to start it begin with the achieve this), and I don't want the click to restart to interfere with the link attached to the last image -so therefore, the only thing I REALLY want this script to do that it does not already do, is stop at the last image.

    How exactly can I fix this? Is there something specific I need to add or change?

    Thanks John,
    Trace

  4. #4
    Join Date
    Jul 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I FIXED IT!!! I CANNOT Believe it! Sorry for yelling. Playing with the numbers always gets ya somewhere, sometimes maybe not what you were aiming for, and a lot of times in a real mess, but this time it worked! Here's what I did (using the original script) to stop the darn thing on the last image:

    obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0

    I changed this 1
    obj.postimages.length-1)?

    to ZERO:
    obj.postimages.length-0)?

    And it stops!

    I'm happy!

    Later,
    Trace

    Now it'd be cool if they could restart it, BUT any idiot knows to just refresh the page if you want to see it again! LOL!

  5. #5
    Join Date
    Dec 2006
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by MacMajor View Post
    BUT any idiot knows to just refresh the page if you want to see it again!
    That reminds me of my favourite saying:
    "Never under-estimate the power of stupidity"

  6. #6
    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

    You didn't say that you wanted it to be able to start again, for that - see:

    http://www.dynamicdrive.com/forums/s...ad.php?t=13344
    - 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
  •