Jump to content

Embeded Sound Doesn't Work


MrFish
 Share

Recommended Posts

I want sound to be played to notify my visitors when something happens. My sound won't play though, is there something wrong with this?

<embed src="cordless.wav" volume=100 autostart=true hidden=false loop=false>

Link to comment
Share on other sites

<embed>s only work in IE. The correct way is to use <object>.
I just googled it and it looks like object is extremely buggy, and in some browsers it even breaks the page. Is this information old?
Link to comment
Share on other sites

Object doesn't work in old IE browsers, which use embed instead. You may have to use some sort of hybrid method.Note: it is probably best if you used a Flash player - that way you are guaranteed high compatibility.

Link to comment
Share on other sites

Well if you go to facebook, for example, they have a built-in instant messenger. And when you get a new message it makes a *pop* sound. This doesn't use flash. I'd like to add sound effects to certain actions on my soon-to-be site. I'll try object.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...