/    Sign up×
Community /Pin to ProfileBookmark

google chrome + music help

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??

Thanks

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@Eye_for_VideoJun 02.2009 — 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
Copy linkTweet thisAlerts:
@evan5authorJun 02.2009 — 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
Copy linkTweet thisAlerts:
@DelanJun 02.2009 — 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.
×

Success!

Help @evan5 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...