Привет, я пытаюсь выяснить, как бы я положил 10 секундную задержку для мыши, чтобы начать воспроизведение звука?Как добавить задержку для мыши на звук (звук при зависании)
Вот код, с которым я работал.
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')">
Спасибо, сэр :) – troxie