The Cut & Paste HTML5 Mouseover/ Click sound effect script
<p>I am using the following script posted on this site: <a href="http://www.javascriptkit.com/script/...oundlink.shtml">http://www.javascriptkit.com/script/...oundlink.shtml</a></p>

<p>It works great, but I want to extend this script and mute the sound using a checkbox. This checkbox has the id: sound. If checked, I want to hear the sounds, when unchecked, no sounds should be heard.</p>

<p>This is the code I currently have for the checkbox:
Code:</p>

<pre><code>function playSound() {
    if (document.getElementById('sound').checked){
        -something needs to be added here to make it work?-
    }
}
</code></pre>

<p>Anyone have an idea how to make this work?</p>

<p>Many thanks </p>
