1. Create a variable named mouseActive.
2. Set the onmousemove event in that div tag to fire a function that sets mouseActive = timestamp.
3. Set a function to check the value of that variable.
4. Use setTimeout() to call that function every X amount of seconds. (X = inactive period check)




Reply With Quote