How to Embed a MIDI File into Your Web Page

What to Do

About this Script

Advice

The Script

This is what the script looks like.

It might be better to list the source of this page rather than copy it from here.

<SCRIPT>
<!--
//Put the filename of the .mid file here.
k="embed.mid";
//Put the name of the tune here.
t="Bach's Invention #1";
// The rest doesn't need to be changed.
document.write('<P><CENTER><NOEMBED><BGSOUND SRC="'+k+'" AUTOSTART=TRUE LOOP=2></NOEMBED><EMBED SRC="'+k+'" WIDTH=200 HEIGHT=80 AUTOSTART=TRUE  LOOP=2><P>')
document.write('<font size=2><a href="'+k+'">'+t+'</a></CENTER><P>')
// -->
</SCRIPT>