开发者

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"> 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜