Google is your friend! Adding music to a webpage is a cross-browser minefield, and if it is made to play automatically will probably annoy your visitors and drive them away. What if they are playing music already when they arrive at your site?
Even that is a nightmare! The MP3 file format is supported by
Internet Explorer 9, Google Chrome 6 and Apple Safari 5, but NOT by
Firefox 4.0 or Opera 10.6
Aaaarrrggghhh!
__________________
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Well if you have to use audio (or video) in a site, that would appear to be the way to do it moving forward. The best way to fight cross-browser issues is to implement a standards-based approach.
I have background music on this website: beauty-4-ashes-outreach.org. I want to know if there is another code to use to have the music to play visiting the site from a cellphone and or tablet?
The code I had that didn't work was:
<object type="audio/mp3"
data=".mpg">
<param name="autoplay"
value="false">
</object>
I have background music on this website: beauty-4-ashes-outreach.org. I want to know if there is another code to use to have the music to play visiting the site from a cellphone and or tablet?
The code I had that didn't work was:
<object type="audio/mp3"
data=".mpg">
<param name="autoplay"
value="false">
</object>
Also, for it to be cross browsers.
She wants to have music on her site
Thanks in advance
Please see the previous answers posted in this thread.
One more time - adding background music to your site is usually a terrible idea.
Especially for mobile devices.
__________________
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.