This content has been marked as final. Show 4 replies
I imagine that this could be accomplished by using a combination of a local variable flag, which is set and unset by onMouseOver and onMouseOut, respectively, and a setTimeout(1000, ...) call in your onMouseOver function.1 person found this helpful
When you go over, set a flag to true and call setTimeout for a second.
When that second is up, the code that you call checks the status of the flag. If it's still true, you do your intended activity.
This simple design doesn't detect when you leave and return within that timeframe, but perhaps a slightly more complicated version which called clearTimeout() from the onMouseOut() function would work sufficiently. In this version, you really wouldn't even need the flag variable... hmmmm
That works a treat kglad. Thanks so much for the help :)
you're welcome.1 person found this helpful