Set Sound volume : Sound : Document JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Document » Sound »

 

Set Sound volume



    
<html>
<head>
<body>
<bgsound id="mySound" src="fake.mp3" balance="0" loop="1">
<script>
    function function1() {
        document.all.mySound.src = "fake.mp3";
        document.all.mySound.balance = -10000;
        document.all.mySound.volume = -3000
    
</script>
</head>
<body onLoad="function1();">
<input type="button" value="balance = -10000" onClick="function1();">
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Document
» Sound