|
How do I insert MIDI audio files into my pages?
You can add sound or music to spice up your web site by embedding a MIDI file in your page. MIDI files are typically only about 15k to 25k in size, so they do not take very long to load. You can use MIDI files as background music on your page by adding the following code to the body section of your html file:
<BGSOUND SRC="yoursong.mid" LOOP=0>
<EMBED SRC='yoursong.mid' AUTOSTART="True" HIDDEN="True" LOOP="false">
Replace "yoursong" with the name of the MIDI file that you are using. This code excerpt will support people using Netscape or Internet Explorer. If you want the MIDI file to repeat when completed, change to LOOP="true". To make a MIDI file play "on request" in the foreground, link to directly to the MIDI file using a hyperlink.
|