Add Music To Your Blog or Site

Here I keydown a very popular method to add music or audio file in to your site or blog.The sound interface will be placed right on the page and can be configured to start automatically, repeat over and over, or just play through once.



So, how do you do it? With the tag. This tag works in much the same way an image tag does. You will need to specify the source of the sound file and add additional commands as needed.



Here is an example of the tag:



This tells the browser to place this file on the page right where you placed the tag. You don't have to use a midi file, you can embed a .wav, .aud, and most other sound formats in this way.



As you can see, the src="" is asking for the source of the midi file, or its Internet address. Just type in the Web address of your midi file here, and you are on your way.

Now, you can add additional commands to the tag to control the output and appearance of your sound file.



Here are some common commands you may wish to use:

1. width="144 " : Tells the browser how wide you wish the sound display to be. Input a number in pixels.

2. height="60" : Tells the browser how tall you want the sound display to be. Input a number in pixels.

3. autostart="true" : Instructs the browser to begin playing the file automatically once it has been loaded on the page. You can set this value to true or false.

4. loop="true" : Instructs the browser to play the file over and over again for as long as someone is on that page, or until the user hits the stop button on the display. You can set this value to true or false.

5. hidden="true" : This command tells the browser to hide the sound display so people viewing your page don't see the sound display with the control buttons. The sound plays as though it were just in the background somewhere. You can set this to true or false.

Here is an example using multiple commands:











Well,Hence the task get done! Enjoy!!