Advanced Dreamweaver

Audio


Audio files come in a number of different formats, including .wav (wave files), .au, and Realplayer (.ram). Whether any given browser can play the audio depends on what helper applications are available on that computer and defined in that browser.

Inserting Links to Audio

You can insert a link to an audio file very easily:

Link to Lehigh Alma Mater Audio

Embedding Audio

Embedded Audio files load a player when the page is opened. To embed an audio file,

  1. From the Insert menu, choose Media, then Plugin.
  2. Find the audio file and select it. Click Ok.
  3. Find an image on the page, and select it.
  4. In the Behaviors panel, click the plus sign
  5. Select Play Sound
  6. Use Browse to find and select the sound file.
  7. Click OK.
  8. By default, this will be set to OnLoad:

Sound as a Javascript behavior

For instance, to have a sound play when the image is clicked:

  1. Select the Image.
  2. Set the Link property to the name of the image file.
  3. In the Behaviors panel, click the plus sign
  4. Select Play Sound
  5. Use Browse to find and select the sound file.
  6. Click OK.
  7. By default, this will be set to OnLoad:
  8. To change this, click on onLoad and change it to OnClick. (If OnClick isn't available, you forgot to make the image a link.)

 


Next

Last updated: March 3, 2004

For more information, contact Jennifer Heise