View Full Version : Fade in slide show [Wait 1 Second!]
1) Script Title: Fade in slide show
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.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
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.
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
tech_support
06-27-2007, 02:10 AM
<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>
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! :D
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.