View Full Version : trigger screensaver with javascript

04-11-2005, 01:04 PM

I made an offline presentation for a company, with extensive use of flash. One of the things I made was a screensaver, wich simply loaded a page in the browser when the user didn't move the mouse for 10 minutes. I coded it in flash, was pretty easy.

Now I'm converting the whole thing to pure html/javascript only version, but I need to get that screensaver working. Is it possible to keep track of mouse movement and time with javascript, so I can load a html page after 10 minutes of inactivity?

I can't use the windows screensaver, because when the screensaver stops, I need to make sure the intro page is loaded again and not the same page that was active when the screensaver started.

Any help or hints would be appreciated!