151
rated 0 times
[
157]
[
6]
/ answers: 1 / hits: 42840
/ 12 Years ago, sun, february 17, 2013, 12:00:00
function EvalSound(soundobj) {
var thissound=document.getElementById(soundobj);
thissound.currentTime = 0;
thissound.Play();
}
function StopSound(soundobj) {
var thissound=document.getElementById(soundobj);
thissound.Stop();
}
This is my code to play a audio file,
onmouseover=EvalSound('sound1') onmouseout=StopSound('sound1')
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
More From » audio