We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

Adding Music (mp3 file) to the background of a webpage.

Medium Priority
268 Views
Last Modified: 2013-11-19
What is the best way to have an mp3 file play in the background of one web page.  Looking for something that will work across many browsers.
Currently using <bgsound src="/sample.mp3"> and it only seems to work in IE.
Comment
Watch Question

try

<embed src="yourmusic.mid">
<noembed> <bgsound src="yourmusic.mid"> </noembed>

place it in the < head>
i think a flash mp3 player is the best solution...
I placed the below code in my <head> and a Quicktime Q appeared in the right corner  then turned to an mp3 player.

<embed src="yourmusic.mid">
<noembed> <bgsound src="yourmusic.mid"> </noembed>

How do I do this with no player appearing?
How do I embed the music with a flash player?

Thanks.
Commented:
To code HTML, try to refer from this link:
http://www.htmlf1.com/tutorial/html-background-music.html

If you prefer to use player, refer to this link:
http://www.allwebco-templates.com/support/S_script_music.htm

From my view, it is best to use HTML code as it is not using any scripts or Active X that may deactivated by some users.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.