我需要静音按钮的帮助,我可以将所有声音设置为静音和取消静音,但我希望按钮更改,所以当您点击静音按钮时,它将更改为按钮上的取消静音
function mutebutton() {
var lyden_er_muted = $("#kor").get(0).muted;
if (lyden_er_muted == true) {
$("#kor").get(0).muted = false;
$("#snorken").get(0).muted = false;
$("#tramper").get(0).muted = false;
$(".mute").text("mute music");
}
else{
//1: mute lyden
$("#kor").get(0).muted = true;
$("#snorken").get(0).muted = true;
$("#tramper").get(0).muted = true;
$(".mute").text("Unmute music");
}
}