function EvalSound(soundobj) {
var thissound=document.getElementById(soundobj);
thissound.currentTime = 0;
thissound.Play();
}
function StopSound(soundobj) {
var thissound=document.getElementById(soundobj);
thissound.Stop();
}
これは、オーディオ ファイルを再生するための私のコードです。
onmouseover="EvalSound('sound1')" onmouseout="StopSound('sound1')"
現在、ホバーに取り組んでいますが、その下で再生される画像に戻ると、最初に戻らず、再生を続けます