midi(or wav IF NECCISARY) in HTML - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

midi(or wav IF NECCISARY) in HTML

Ok im not really very good at HTML, i know what i need to know, and thats not much. Almost all of my pages are full "Flash-a-rama". So what i need is i want a fairly lengthy(1 minute 10 secconds) MIDI song to play in the backround of my page, i could import to Flash but thats gonna slow down my movie, alot. So if any of you HTML wizs know how to import MIDI to a page that qould be of great help to me. I dont want ot convert to wav but if i must.... Im sure theres another way though, iver heard midi on pages before. Also i need this to play while the movie is playing, it cant like play, and then kick into my movie. Thanks

-C^2

Comments

  • JonathanJonathan Posts: 2,914Member
    Hi!

    To get a MIDI file to play you do something like this:-



    However, you want it to play when the movie has finished loading. This is a bit more tricky. I think that the trick here may be to use the OnLoad event of body...I don't THINK it triggers until the page has completely loaded (including the movie).

    You want to put this between the and tags:-





    And add this to your tag ():

    onLoad="MM_controlSound('play','document.MM_controlSound1')"

    Finally, add this just at the start of the page underneath the line:-



    I hope this helps you!

    Jonathan
    Jonathan

    ------------------------------------------
    Count downloads from your site for free!
    http://www.downloadcounter.com/


Sign In or Register to comment.