There are a few cases where you want to know if the user is idle. Namely:
[list]
[*] You want to preload more assets[*]
[*]You want to grab their attention to pull them back[*]
[*]You want close their banking session after 5 minutes of inactivity. (Jerk!)[*]
[*]You want the site to sneak off the screen and see if they notice ;-)[*]
[/list]
http://paulirish.com/2009/jquery-idletimer-plugin/
[url=http://www.nczonline.net/blog/2009/06/02/detecting-if-the-user-is-idle-with-javascript-and-yui-3/]Nick Zakas wrote a script for YUI3[/url]
[list]
[*] You want to preload more assets[*]
[*]You want to grab their attention to pull them back[*]
[*]You want close their banking session after 5 minutes of inactivity. (Jerk!)[*]
[*]You want the site to sneak off the screen and see if they notice ;-)[*]
[/list]
http://paulirish.com/2009/jquery-idletimer-plugin/
[url=http://www.nczonline.net/blog/2009/06/02/detecting-if-the-user-is-idle-with-javascript-and-yui-3/]Nick Zakas wrote a script for YUI3[/url]