Hi I'm trying to find out how would I put a 10 second delay for the mouseover to start playing audio?
Here is the code I have been working with.
function PlaySound(soundobj) {
var thissound = document.getElementById(soundobj);
thissound.play();
}
function StopSound(soundobj) {
var thissound = document.getElementById(soundobj);
thissound.pause();
thissound.currentTime = 0;
}
<div onmouseover="PlaySound('mySound')" onClick="StopSound('mySound')">