Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder DR.Wong's Avatar
    Join Date
    Jan 2005
    Posts
    360
    Thanks
    23
    Thanked 1 Time in 1 Post

    Question Help with Sounds

    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!
    -DR.Wong

    Wheres the food at?

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,910
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    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.

  • #3
    Regular Coder
    Join Date
    May 2005
    Posts
    313
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer

    The HTML+TIME 2.0 Reference describes timed media.
    Thanks in advance!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •