Articles

How to put background music in blogger

by Arslan Hassan web designer
This is the Guest Post by Arslan . Most of the People Love Music About 75 % almost. Music take great part in relexing the peoples mind. Now the Post is about on How to Add Background Music to Blogger in simple way.I was asked so many times ,that how to embed background music in a blog. It is actually quite simple to do this, and there are various methods you can use .

In this post , I will concentrate on actually embedding the music (rather than adding widgets such as Last.fm playlists) You can see an example of embedded background music here's and also further down this page.


The easiest method of adding background sound is :

Login to Yours Blogger Account.
Go to Design >> Edit HTML
Back up your Blog template as a precaution by downloading the full template to your computer
Expand Widget Templates by checking the box on the right hand side.
Find the following line in your Blogger template by using CTRL + F : 

<body>


Include a line like following in your blog template, just after the opening <body> tags.

<bgsound src="http://yoursite.com/yoursound.mp3" loop=infinite>

where's the URL is that of the background music you wish to use. This method works perfectly well , but visitors to your site will not be able to switch the music off if it becomes distracting .

Now So instead, you may prefer to use this method instead , which is compatible with all browsers (press the play icon to start music) :

This is a achieved by including the following code somewhere in your template (eg.. the sidebar widget):

<embed width="200" src="http://yoursite.com/yourmusic.mp3" autostart="false" loop="false" height="50"></embed>

You can also change some of the variables to suit your needs:

autostart: set to "true" to make the music begin as soon as the page is loaded , or "false" to ensure the user has to press the play icon
loop: set to "true" to have the music play over and over, or "false" so that it plays only once.
height: if this is set to "40" , only the play options will be visible. You can make this larger if you prefer , in which case blank space will be visible.

Using either this method, you can link to .mp3, .mid or .wav music files to embed. However, you must be aware of copyright restrictions , and ensure you have the appropriate permission for use for the music you decide to use... ! Thats it ...

Sponsor Ads


About Arslan Hassan Advanced     web designer

39 connections, 1 recommendations, 142 honor points.
Joined APSense since, August 7th, 2012, From gujarkhan, Pakistan.

Created on Dec 31st 1969 18:00. Viewed 0 times.

Comments

No comment, be the first to comment.
Please sign in before you comment.