开发者

play sound i page background

开发者 https://www.devze.com 2023-01-30 15:57 出处:网络
i find this tag play开发者_开发百科 sounds in page background: <embed src=\"file.wav\" autostart=\"true\" loop=\"false\" volume=\"100\" hidden=\"true\" />

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

精彩评论

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