PDA

View Full Version : Fade in slide show [Wait 1 Second!]



Poet
06-26-2007, 11:54 PM
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

Jas
06-27-2007, 12:50 AM
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.

Poet
06-27-2007, 12:59 AM
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>

Poet
06-27-2007, 02:22 AM
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