How to add audio to a web page
The following codes will allow you to easily add audio on any of your pages with very little changes in it. You may use any of the following formats:
- .midi ( Musical Instrument Digital Interface )
- .ra ( RealAudio )
- .aiff ( Audio Interchange File Format )
- .au ( Audio )
- .wav ( Windows Wave )
- .rmf ( Rich Music Format )
- Mp3 ( Acronym for MPEG-1 or MPEG-2 audio layer 3 )
Bear in mind that not all browsers have sound capabilities. However, using .Mp3 or .wav formats should reach most users. You will need to change the address to point to where you have saved your sound file.
Display media player controls and play audio only when your visitor click's the play button.
Do not Display media player controls and start play the audio automatically when page loads.
Display media player controls and start play the audio automatically when page loads.
You may prefer to use the following script instead. It will work well on I.E explorer, Opera or Netscape browsers. Change the name of the sound file to yours and point the address to reflect where you have saved it. In addition, if you do not want it to start automatically, you can change the attribute START=TRUE to FALSE. And the attribute LOOP=INFINITE to 1, 2 or any number of loops that you want the sound to start playing again.
