play sound i page background
i find this tag play开发者_开发百科 sounds in page background:
<embed src="file.wav" autostart="true" loop="false" volume="100" hidden="true" />
But i have problam with some browser (FF, Opera) this browser break(stop work). I thing this tag is very old and now unused.
So how play sound in page background (use html, css or jquery languages)?
Thanks
http://www.scriptwell.net/howtoplaysound.htm has a few options, HTML5 is bound to have something although support isn't great yet
try:
<bgsound src="music.wav" loop="infinite">
精彩评论