View Full Version : Help with Sounds

06-02-2005, 04:25 PM
Okay, I know how much most of you hate BG SOUNDS but I am working on something that does not concern online users.

All I want to know is if (and how) it is possible to make an 'onload' event for a BGSOUND with the exeption that i want the event to happen once the sound finnishes.

More specifically, when a BGSOUND stops, I want the active page to navigate to a new one.

Your help would be Great!

Thanks! :thumbsup: :)

Philip M
06-02-2005, 07:52 PM
As I see it the only way is to time the duration of the sound (music?) and then use setTimeout() to delay the function to re-direct to another page for that many seconds after the page has loaded.

06-04-2005, 01:47 PM
The HTML+TIME 2.0 Reference (http://msdn.microsoft.com/workshop/author/behaviors/reference/time2_entry.asp) describes timed media.