Hi Rob, thanks for the advice. I'll try it out and let you guys know
how well I did.

Thanks Josh, I'll check it out.

On Apr 20, 10:04 pm, RobG <rg...@iinet.net.au> wrote:
> On Apr 21, 8:33 am, geocalleo <gcalde...@gmail.com> wrote:
>
> > Hi all, I was wondering if there is a way in jQuery for me to disable
> > a hover event for a few seconds and then execute it only if the mouse
> > pointer is still hovering over the particular element I have set the
> > hover event to.
>
> > So the user would hover over a link and if after 2 seconds was still
> > hovering over it, the hover event would then execute. Otherwise,
> > nothing would happen.
>
> Put a listener on the mouseover event and use setTimeout to call the
> function.  If there's a mouseout or a mouseover on some other related
> element before the event fires, cancel the timeout, otherwise let it
> run.  You can also do the same for accidental mouseout events so the
> cursor can go off the edge for a short time before the mouseout fires.
>
> --
> Rob

Reply via email to