banalala

ie&chrome播放wav
html<bgsound id='wav_ie' src="" loop=1></loop>...
扫描右侧二维码阅读全文
24
2017/05

ie&chrome播放wav

html


<bgsound id='wav_ie' src="" loop=1></loop> 
<object id='wav_chrome' width="0px" height="0px" type="audio/x-wav" data=""></object> 

js


function play(){  
    $('#wav_ie').attr("src","asd.wav");  
    $('#wav_chrome').attr("data","asd.wav");
}
function stop(){  
    $('#wav_ie').attr("src","");  
    $('#wav_chrome').attr("data","");
}



最后修改:1970 年 01 月 01 日 08 : 00 AM
如果觉得我的文章对你有用,请随意赞赏

发表评论