# onMouseMove and Setinterval

**URL:** <https://forum.kirupa.com/t/onmousemove-and-setinterval/168428>\
**Category:** flash\
**Created:** [November 7, 2005, 5:45am UTC](https://forum.kirupa.com/t/onmousemove-and-setinterval/168428 "2005-11-07T05:45:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaq](https://avatars.discourse-cdn.com/v4/letter/c/41988e/32.png) [@chaq](https://forum.kirupa.com/u/chaq)\
**Post date:** [November 7, 2005, 5:45am UTC](https://forum.kirupa.com/t/onmousemove-and-setinterval/168428/1 "2005-11-07T05:45:39Z")

</div>

Hi,

If i want an animation to play after 20 seconds where there are no mouse movement, how should i write the codes? If within this 20 secs, there is movement, then it should restart counting from 0 seconds again …

Anybody please help!

Thanks  
chaq
