script delay -
Hey guys, i just want to say this forum is great. I have a tough time getting someone to help me out with various ideas and how to pull them off. I have been messing around with building webpages for a couple months now. I am trying to pull off an effect where the page will first, display and image, second, load a wav file and plugin, and third, run a javascript which will fade the background colour as the wav file plays.
Could anyone help me out with some ideas of how to do this? The web page is at www.personal.psu.edu/ams282 if you'd like to see what I'm trying to do. Thanks in advance for your help.
David Miller
John Pollock posted this at 16:11 — 23rd April 1999.
He has: 628 posts
Joined: Mar 1999
The first two things would probably work in order if you placed the picture in the code first, followed by the wav file. This works if the wav file is larger than the image (which would make it take longer to load).
To run the javascript after both those things have happened, I would use the onLoad="" in the body tag, ie:
<BODY onLoad="js_function()">
Replace the js_function() with the active function in your color script.
Let me know if this works!
------------------
John Pollock
http://www.pageresource.com
http://www.javascriptcity.com
Java Script: A Beginner's Guide
Page Resource
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.