Ok, the situation: I'm building a web page, and the client wants to have three flash galleries on staggered timing (i.e., the first one loads and runs, 4 seconds later the second loads and runs, 4 seconds later, third one loads and runs).
I've been trying to figure out how to use Javascript to handle the initial delay between each object, and the best I can figure is to use an onLoad to start the first flash (Flash1), and then call out a function with setTimeout to start Flash2 4 seconds after Flash1 loads, and the same thing for Flash3. However, my attempts thus far have failed, and all three load up at the same time.
The test page is here: http://www.caseygrouparch.com/a-p_we...flash_test.htm
Each flash will (eventually) refer to a separate external XML file for the images, but currently they're all referring to the same XML for the sake of simplifying things for me at this stage.
My script is as follows:
"flashintro1", etc., are the IDs for the DIV's holding each flash object.Code:<script type="text/javascript"> window.onload = function() { document.getElementById("flashintro1"); setTimeout ("loadFlash2()", 4000); } function loadFlash2 () { document.getElementById("flashintro2"); setTimeout ( "loadFlash3()", 4000 ); } function loadFlash3 () { document.getElementById("flashintro3"); } </script>
I've been scouring the web for tutorials and instructions so long that my brain is melting. Please help!
Thanks a bunch!
~Shae





Bookmarks