All one needs is a MIDI file ( *.mid) and two lines added to your HTML document, to have music play when someone hits your page. The first line will cause music to play when someone is using Microsoft Internet Explorer, the second line plays the same music if using Netscape Navigator. Your MIDI file should be in the same directory as your HTML document.
Be sure to use the exact syntax as shown (in other words, use upper and lower case, special characters and any spacing as show). Also, use the exact syntax for your MIDI file. Put these tags in your page near the BODY tag:
<BGSOUND SRC="yourmidifile.mid"><!--For IE -->
<EMBED SRC="yourmidifile.mid" HIDDEN="True"><!--for netscape-->
If you want music to be played on browsers which have installed the Crescendo MIDI Player Plug-in, use the following syntax to enable music on Crescendo-enabled browsers. Even if the Crescendo plug-in is not installed, the music will still play on Microsoft's Internet Explorer, which will pop up a midi player:
<EMBED SRC="yourmidifile.mid" WIDTH=200 HEIGHT=55>
While these instructions should work with most versions of Netscape Navigator and MS Internet Explorer, they are not 100% guaranteed. Unfortunately, there are still no "standards" for MIDI file playback on the WEB. Your browser may require some tweaking of preferences or maybe some plug-ins (such as Crescendo). Different versions of browsers (especially Netscape) handle Midi files differently.