Widget:A2Audiosettings: Unterschied zwischen den Versionen

aus Kamelopedia, der wüsten Enzyklopädie
Zur Navigation springen Zur Suche springen
 
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 11: Zeile 11:
 
</div>
 
</div>
  
<audio name="a2audio_channel_music"      src="" loop="loop" preload="auto"></audio>
+
<audio id="a2audio_channel_music"      loop="loop" preload="auto"></audio>
<audio name="a2audio_channel_background" src="" loop="loop" preload="auto"></audio>
+
<audio id="a2audio_channel_background" loop="loop" preload="auto"></audio>
<audio name="a2audio_channel_noise"     src=""            preload="auto"></audio>
+
<audio id="a2audio_channel_noise"                 preload="auto"></audio>
 
<script type="text/javascript">
 
<script type="text/javascript">
 
function assoc_a2_player(name) {
 
function assoc_a2_player(name) {
 
     $("#a2audio_"+name).click(function () {
 
     $("#a2audio_"+name).click(function () {
         $("#a2audio_player"+name)[0].muted = ! $("#a2audio_"+name)[0].checked;
+
         $("#a2audio_channel_"+name)[0].muted = ! $("#a2audio_"+name)[0].checked;
 
     });
 
     });
 
}
 
}

Aktuelle Version vom 8. November 2013, 15:28 Uhr