Click to See Complete Forum and Search --> : google chrome + music help


evan5
06-01-2009, 07:30 PM
hey guys, i'm trying to add Background music to my webpage. This is the code i am using:

<embed src="music.mp3" autostart="true" loop="true"
width="2" height="0" volume="60">
</embed>
<noembed>
<bgsound src="music.mp3" loop="infinite" volume="60">
</noembed>

it works on all browsers but google CHROME. anyone know how i can fix that?:confused:

Thanks

Eye for Video
06-01-2009, 09:40 PM
Does your page validate? If not, clean it up and then go forward.
My suggestion, use a Flash player and swfobject (Google for details) to place it on your page. Then you can add some alt content to describe your background music for robots and spiders.
EfV

evan5
06-02-2009, 04:08 AM
no whenever I try to validate my script, i dont understand what i have to do. Those validators confuse the hell out of me. Why would i need flash related things since all I need a music file in the background. I just can't get it to work with Google Chrome

Delan
06-02-2009, 05:27 AM
Embed never validates with the W3C because it is a rubbish tag.
The advice is right, get a flash-based media player to put on your site, then load the file into that. Flash will handle it all, and it'll work brilliantly on all browsers.