I need to do a rest screen, when the mouse is stopped for a few seconds open the rest
div , I tried this without success:
<script type="text/javascript">
$(window).mousemove(function(event) {
clearTimeout(timer);
timer = setTimeout(function() {
$('#result').fadeIn('fast');
}, 10000);
});
</script>
When the mouse moves the div some.