View Full Version : background Music problem

07-05-2010, 08:17 AM
hi i want to add a background music to a page and i used

<bgsound src="Jazz Bar medium.mp3" loop="infinite"> Option and its working good with ie-8 but its not working with both Firefox and the chrome.Please some one help me fix the problem please.


Here's the Live Demo Of the Page (http://vijethansp.com/test/index.htm)

Here's the Mark Up :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css.css" rel="stylesheet" type="text/css" />

<p align="center"><bgsound src="Jazz Bar medium.mp3" loop="infinite">
<img src="images/cartoon_gorilla.gif" width="260" height="271" /></p>
<h1 align="center" class="txt"><strong>This is a texting page</strong></h1>
<h1 align="center">&nbsp;</h1>
<p align="center">&nbsp;</p>

07-05-2010, 08:31 AM
bgsound is IE only. My suggestion, lose the music all together. It will drive away your users unless you are a music site. If you don't care then look into using a flash mp3 player. There is a lot of them out there, many of them free.