Hello Guys, I need a script or code or whatever to put on a website that can do this: When the visitor moves the mouse around the website (including the scroll bars), a timer is counting the seconds. But if the visitor moves the mouse OUTSIDE the page, (i.e.: over the Menu items of the browser, or the BACK button, or whatever) the Timer STOPS. How can I do this? I reallly need this. Thanks!!
See this article. How to detect mouse movements using JavaScript You will have to implement the timer using SetTimeout function and reset a counter when mouse move away from borders.
We used it on few of our websites and it is working fine. Just give a try yourself. As said before, you will have to implement the timer functions.