我有A.mp3 , B.mp3, C.mp3(对应的声音分别是“A”,“B”,“C”)  三个文件,现在想通过JS调用,读出 “BCA”
该怎么做,很急,请大虾们帮帮忙,不知道也帮忙顶一下

解决方案 »

  1.   

    调用播放器的OnEnd事件加载下一个文件
      

  2.   


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head><title>
    无标题页
    </title>
        <script type="text/javascript">
    function playSound(src){
    var _s = document.getElementById('snd');
    if(src!='' && typeof src!=undefined){
    _s.src = src;
    }
    }
    </script>
    </head>
    <body>  
        <bgsound id="snd" loop="0" src="">
        <input type="button" value="声音" onclick="playSound('1.mp3')" />
    </body>
    </html>我百度 测试过的。
    可以播放声音。