Embedding MP3 Audio Files

You can provide your visitors with an easy way to listen to an MP3 audio file by embedding it into your web page. There are many ways to do this and many different player can be used for the audio playback. The most simplest and easiest way to do this is by using QuickTime to play an MP3 file. The code below will work for Internet Explorer as well as other browsers.


<object classid="clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="
X" height="Y">

<param name="src" value="URL location of audio file.mp3" />

<!--[if !IE]>-->

<object type="audio/mpeg" data="URL location of audio file.mp3" width="X" height="Y">

</object>

<!--<![endif]-->

</object>



The value of Y for the height will adjust the vertical position of the player controller on your page.

The value of X for the width can take on several values and each one will have a different effect:




Template Design | Elque 2007