Join the List
Bravenet Home
|
Webmaster Tips and Tricks Newsletter Archives
Music to your site November 26th, 2002
Members ask us every day how to add certain code to their pages. However this following tip is the most common requested code sample.
Adding sound to your website is a great feature to add to any website. To add sound to your webpage, simply add the following code to the pages where you want the sound to play. Remember, adding this code to your site is different for every editor, so be patient - you will get it!
<EMBED SRC=”music.mid” AUTOSTART=”TRUE” LOOP=”TRUE” WIDTH=”145” HEIGHT=”60” ALIGN=”CENTER”>
<NOEMBED>
<BGSOUND SRC=”music.mid” PLAYCOUNT=”10”>
</NOEMBED>
</EMBED>
You will notice that there are several different tags inside of this code. This is to ensure that both Internet Explorer and Netscape browsers can detect and play the sound file. Do not remove any of the tags, or the functionality will disappear.
Also remember to change the name of the file from music.mid to the actual name of your music file. Also, be sure that your music file is uploaded (or transferred) to your website, and you place it in the right directory, or it will not play.
|
|
Build your very first live Database Driven Website using PHP & MySQL. Instantly apply working code examples from the book to your Website. Get it Now! 295 pages.
|
|
Write faster loading, dramatically smaller pages. ‘Now You Too Can Easily Create Modern 'Table-free' Websites Using CSS from scratch’. Get it Now! 480 pages.
|
|
 |