Results 1 to 5 of 5

Thread: Fade in slide show [Wait 1 Second!]

  1. #1
    Join Date
    Jun 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Fade in slide show [Wait 1 Second!]

    1) Script Title: Fade in slide show

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

    3) Describe problem: I need one of the two slideshows to have a 1 second delay before it starts.



    Any help would be VERY appreciated :] Thank you
    Last edited by Poet; 06-26-2007 at 11:55 PM. Reason: typo

  2. #2
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Just use the JS timeout function, or else put something like for(i=0; i<1000000; i++){} (BUT this will probably create some lag) right before you call the function in the body.
    I'm sorry, but I don't have time to actually post the code for you. The script it too long for me to read through and edit right now. Hopefully someone else will, though.
    Last edited by Jas; 06-27-2007 at 12:56 AM.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  3. #3
    Join Date
    Jun 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Jas View Post
    Just use the JS timeout function, or else put something like for(i=0; i<1000000; i++){} (BUT this will probably create some lag) right before you call the function in the body.
    I'm sorry, but I don't have time to actually post the code for you. The script it too long for me to read through and edit right now. Hopefully someone else will, though.
    Thank you i have tried the timeout function, but I'm not sure exactly where to put it in the script for it to work properly.

    Any additional suggestions are welcome

  4. #4
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Code:
    <script type="text/javascript">
    var fadeshow_delay = 3 //number of seconds
    setTimeout(function() {
    //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)
    },fadeshow_delay*1000);
     
    </script>
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  5. #5
    Join Date
    Jun 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you!!

    Right now, after the set amount of time the code sends to a broken version of the same page ( i put it where the delayed slideshow code went)

    I'll try and work out the bugs, but.. thank you!

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
  •