I’m quite stumped by a problem where I would like an animation that I have which is triggered by the next click function to automatically occur if there is a period of inactivity of say about 30 seconds – I’d be using the mousemove or hover states to determine this – then finally stop the inactivity trigger if there is activity. I guess I’d have use setInterval/timeout but all my previous attempts continued to trigger the click despite the 30second rule.
I have a fiddle with full code to demonstrate here : http://jsfiddle.net/83rBU/
Any help would be greatly appreciated!
Check fixed code on jsfiddle
P.S. Sorry old link was wrong