Adding Music to a Website or Template
You can add a sound player console or a musical background to your template, we have provided code you can copy on this page. You can use .midi .wav .mp3 or many other file types. Also see "Notes" at the bottom of this page.
Simple Background Sound For IE Only
For simple background music in Internet Explorer only use the following code:
<BGSOUND SRC="your-file.mid" LOOP="false">
Option #1 - Background Sound Cross-Browser
Name your mp3 music file "bgmusic1.mp3" and place it in the folder with the page you add the following code to. This code uses some HTML5 as well as javascript for browser detection. Compatible in most browsers. Can use mp3, wav, mid, au files.
Copy and paste the following code into your HTML page somewhere after the "body" tag:
Option #2 - Quicktime Player (for mp3, wav, mid, au or video files)
To add a small Quicktime console, copy and paste the following code. Compatible in IE, Firefox and Netscape browsers. For Mac and PC as long as Quicktime is installed. Be sure to edit "your-file.mid" in two places with this code. Quicktime code may display messages about Active X controls in IE.
Option #3 - Windows Player (for mp3, wav, mid, au or video files)
To add a Windows Media console with a border as you see below: 1. Download the "S_script_music_WIN.js" and place this in your template folder. 2. Copy and paste the code below into any HTML page. Compatible in IE, Firefox and Netscape browsers. Be sure to edit "your-file.mid" in two places in this .js file. Can be used for video as well.
Option #3B - Windows Player Page Code (for mp3, wav, mid, au or video files) The following code may display messages about Active X controls in IE. To add a Windows Media console with a border as you see above, copy and paste the following code. Compatible in IE, Firefox and Netscape browsers. Be sure to edit "your-file.mid" in two places with this code. Can be used for video as well.
Option #4 - RealAudio Player (for mp3, wav, mid, au or video files)
You can add the realaudio player to any template. Click here for realaudio details, or copy the code below and paste it into your page.
NOTES: Copy the above selected code and paste these lines into your webpage anywhere in the body of the HTML document. You can place it after the text in the page or anywhere else is fine. It is best to do this edit using Notepad or a Simple Text editor.