My timer is activated by a onmouseover function.
My css animation finished after 15 seconds, but my timer didn't. The times is re-activated after each onmouseover instead of a on time count down.
<span onmouseover="mouseHover()">Hover this text</span>
This activates this function:
function mouseHover() {
    startTimer();
}
var timer;
function startTimer() {
    window.clearTimeout(timer);
    timer = window.setTimeout(function(){
        getElementById("demo").innerHTML="Hovered!";
    },3000); 
}
Note: The timer is working (except for in the fiddle)
If you have any constructive feedback, please tell me! Thanks
Jsfiddle The JSfiddle isn't working for me, I don't know why.
 
     
    