'volume' Example : volume « Javascript Properties « JavaScript Reference

Home
JavaScript Reference
1.Event Handlers Reference
2.Javascript Collections
3.Javascript Methods
4.Javascript Objects
5.Javascript Properties
JavaScript Reference » Javascript Properties » volume 




'volume' Example

    
<html>
<head>
<body>
<bgsound id="mySound" src="sound.mp3" balance="0" loop="1">
<script>
    function function1() {
        document.all.mySound.src = "sound.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>

    
      
      














Related examples in the same category
1.'volume' Syntax and Note
2.'volume' is applied to
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.