Handouts: Using MIDI and Audio Files on Your Web Page

MIDI

First, place a MIDI file in the Netscape Communicator folder.

TO USE AN EMBEDDED FILE...

Use Notepad or Communicator's INSERT HTML tool to insert the following code into the body of your HTML:

<embed src="xxxxxxxx.mid" width=144 height=60 autostart=true hidden=true>

The above code will cause the MIDI file to play automatically whenever you start that page.

If you do not want the file to start automatically, use autostart=false. If you want controls to appear so the user can start or stop the file, use hidden=false.

TO LINK TO A MIDI FILE...

Use Notepad or Communicator's INSERT HTML tool to insert the following code into the body of your HTML:

<h1>Here's a <a href="xxxxxxxx.mid"> MIDI FILE</a></h1>

AUDIO

In this example, we will use a WAV file format.

First, place a WAV file in the Netscape Communicator folder.

TO USE AN EMBEDDED FILE...

Use Notepad or Communicator's INSERT HTML tool to insert the following code into the body of your HTML:

<embed src="xxxxxxxx.wav" width=144 height=60 autostart=true hidden=true>

The above code will cause the MIDI file to play automatically whenever you start that page.

If you do not want the file to start automatically, use autostart=false. If you want controls to appear so the user can start or stop the file, use hidden=false.

TO LINK TO AN AUDIO FILE...

Use Notepad or Communicator's INSERT HTML tool to insert the following code into the body of your HTML:

<h1>Here's a <a href="xxxxxxxx.wav"> MIDI FILE</a></h1>

TO LINK A GRAPHIC TO A SOUND FILE...

You can link a graphic to a sound file by typing (we'll use a .MID file in this example).

<a href="xxxxxxxx.mid"><img src="xxxxxxxx.gif"></a>