<img src="img/music.png" alt="" class="musicBtn" onclick="bgaudio()" >
<audio src="https://quickso.cn/api/wyy/api.php?id=1474411443" id="bgaudio" ></audio>
<script>
var bgaudiocount = 0;
function bgaudio(){
++bgaudiocount;
if(bgaudiocount % 2 == 1){
document.getElementById("bgaudio").play();
}else{
document.getElementById("bgaudio").pause();
}
}
</script>
所有评论(0)