Possible duplicate:
javascript: pause setTimeout ();
I am using jQuery and working on a notification system for my site. Notifications automatically disappear with the setTimeout function.
How can I stop the setTimeout call timer?
For example, I would like to pause the setTimeout call when the mouse is above the notification, and continue to scroll down the mouse ...
I googled "pause setTimeout" with no luck.
I am currently clearing the setTimeout call with clearTimeout and at the same time the mouse notification fades, but it would be nice to have this pause effect.
Any ideas?
javascript jquery settimeout
Pablo
source share