title: Javascript play sound on hover. stop and reset on hoveroff
body: <pre><code>function EvalSound(soundobj) {
      var thissound=document.getElementById(soundobj);
      thissound.currentTime = 0;  
      thissound.Play();
  }
  
  function StopSound(soundobj) {
      var thissound=document.getElementById(soundobj);
      thissound.Stop();
  }
  </code></pre>
  
  <p>This is my code to play a audio file,</p>
  
  <pre><code>onmouseover="EvalSound('sound1')" onmouseout="StopSound('sound1')"
  </code></pre>
  
  <p>It is currently working on hover, however when i go back to the image that it plays under it doesnt go back to the beginning, it continues playing</p>