'loop' Example : Sound « Document « JavaScript DHTML






'loop' Example

    
<html>
<body>
<bgsound id="myBackgroundSound" src="yourmusic.wav" loop="1">
<script language="JavaScript">
    function function1() {
        document.all.myBackgroundSound.loop = 2;
    }
</script>
<input type="button" value="Set the loop value to 2" onClick="function1();">
</body>
</html>

    
      
      








Related examples in the same category

1.Set Sound volume
2.'balance' Example