Results 1 to 2 of 2

Thread: Ultimate Fade-in Slideshow: delay before slideshow begins?

  1. #1
    Join Date
    Oct 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ultimate Fade-in Slideshow: delay before slideshow begins?

    I know you can define the delay interval between pictures in the slideshow, but is there a way to delay the start of the slideshow when the page loads?

    Thanks,
    R

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

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.

    There are many ways do to this. For example, for the code of Step 2, change it to:

    Code:
    <script type="text/javascript">
    function runslideshow(){
    //new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
    new fadeshow(fadeimages, 140, 225, 0, 3000, 1, "R")
    new fadeshow(fadeimages2, 140, 225, 0, 3000, 0)
    }
    
    setTimeout("runslideshow()", 3000) //start slideshows after 3 seconds
    </script>
    Basically all I'm doing is putting the code to run inside a function, then using setTimeout() to create the delay before execution.

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
  •