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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2008
    Location
    Buenos Aires
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Replaying MIDI file

    Very Simple.
    I have a script which plays a MIDI file.

    It's basically <bgsound src= "mymidi.mid autostart="true" loop="false" hidden="true>

    I want so that when a user clicks on a button the MIDI is played again.
    Right now I am loading the midi on an invisible iFrame and reloading the iFrame whenever the user asks to play again.

    Is there a better way!?
    Thanks so much!
    Rod

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,992
    Thanks
    203
    Thanked 2,536 Times in 2,514 Posts
    You will find the answer at:-

    http://www.javascripter.net/faq/sound/play.htm


  •  

    Posting Permissions

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