randylee73
10-25-2006, 02:23 PM
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
ddadmin
10-25-2006, 06:36 PM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) 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:
<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.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.