演示页面:http://demo.joyfulboy.cn/js/addbgsound/

调用方法:

<script type=”text/javascript”>

<!–

$Load(function(){

var bgs = new addBgSound();

bgs.Url = “http://sports.wuhan.net.cn/mc3/mp3/%B1%A6%B1%B4.MP3”; //背景音乐地址;

bgs.loop = 1; //重复播放次数,0为始终重复播放;

bgs.show();

});

//–>

</script>