MrFish Posted October 12, 2009 Share Posted October 12, 2009 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 More sharing options...
Synook Posted October 12, 2009 Share Posted October 12, 2009 <embed>s only work in IE. The correct way is to use <object>. Link to comment Share on other sites More sharing options...
MrFish Posted October 12, 2009 Author Share Posted October 12, 2009 <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 More sharing options...
Synook Posted October 12, 2009 Share Posted October 12, 2009 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 More sharing options...
MrFish Posted October 12, 2009 Author Share Posted October 12, 2009 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 More sharing options...
Guest FirefoxRocks Posted October 13, 2009 Share Posted October 13, 2009 Facebook Chat uses JavaScript I think. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.