[jQuery] Re: newbie onmouseover onmouseout

2007-05-17 Thread Brandon Aaron
On 5/17/07, Daemach <[EMAIL PROTECTED]> wrote: Dagnabbit Brandon, that was far too simple ;) Man I really need to get some sleep - 15 hours a day is to much >.< I understand all too well. :) Glad that worked! -- Brandon Aaron

[jQuery] Re: newbie onmouseover onmouseout

2007-05-17 Thread Daemach
Thanks Brian - I'm going to use hoverIntent for the trigger - it will work well there. On May 17, 2:12 pm, "Brian Cherne" <[EMAIL PROTECTED]> wrote: > What about something like: > > $(a).hoverIntent( handleMouseOver , function(){} ) > > $(b).hover( function(){} , handleMouseOut ) > > You'd get th

[jQuery] Re: newbie onmouseover onmouseout

2007-05-17 Thread Daemach
Dagnabbit Brandon, that was far too simple ;) Man I really need to get some sleep - 15 hours a day is to much >.< On May 17, 2:18 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote: > You just need to set a flag right before the animation starts ... > something like: > > var isAnimating = true; >

[jQuery] Re: newbie onmouseover onmouseout

2007-05-17 Thread Brandon Aaron
You just need to set a flag right before the animation starts ... something like: var isAnimating = true; Then in the callback of the animation ... just set it to false. The mouseout would need to check isAnimating before being allowed to do anything. -- Brandon Aaron On 5/17/07, Daemach <[E

[jQuery] Re: newbie onmouseover onmouseout

2007-05-17 Thread Brian Cherne
What about something like: $(a).hoverIntent( handleMouseOver , function(){} ) $(b).hover( function(){} , handleMouseOut ) You'd get the graze protection from hoverIntent and the mouseOut on another object. It's a little wasteful using empty functions like that... but it might help. In this case

[jQuery] Re: newbie onmouseover onmouseout

2007-05-17 Thread Daemach
That plugin is cool - I looked at it before. Unfortunately I'm triggering the close and open from two different elements and using the mouseout event on the menu itself to close. The problem is that if the mouse leaves the object, it starts the slide animation. If the mouse grazes the div even

[jQuery] Re: newbie onmouseover onmouseout

2007-05-17 Thread Brian Cherne
My hoverIntent plug-in may help... but in the opposite way of thinking about your problem -- it delays the onMouseOver call until the users cursor comes to rest (or slows significantly) over the target object. http://cherne.net/brian/resources/jquery.hoverIntent.html Brian. On 5/17/07, Daemach

[jQuery] Re: newbie onmouseover onmouseout

2007-05-17 Thread Remy Sharp
Ah ha! And I believe I have reinvented a wheel. Doh! On May 17, 5:37 pm, "John Resig" <[EMAIL PROTECTED]> wrote: > Isn't that what .hover() does? > > $(...).hover(function(){ > $(this).addClass("hilite");}, function(){ > > $(this).removeClass("hilite"); > > }); > > --John > > On 5/17/07, Re

[jQuery] Re: newbie onmouseover onmouseout

2007-05-17 Thread Daemach
I have a slightly different problem - I have a vertical menu that gets displayed when you mouse over a link using slideDown. I attached a slideUp event to the mouseout event of the containing div, but if the pointer moves back over the menu before the animation is done it restarts the animation r

[jQuery] Re: newbie onmouseover onmouseout

2007-05-17 Thread Remy Sharp
I've written a plugin that will fire a mouseout when the mouse leaves the container DIV, rather than moves over a sub-element: http://remysharp.com/2007/05/17/true-mouseout-jquery-plugin/ Hope it helps. On May 16, 1:36 pm, SamCKayak <[EMAIL PROTECTED]> wrote: > Just getting started... > > I hav

[jQuery] Re: newbie onmouseover onmouseout

2007-05-17 Thread John Resig
Isn't that what .hover() does? $(...).hover(function(){ $(this).addClass("hilite"); }, function(){ $(this).removeClass("hilite"); }); --John On 5/17/07, Remy Sharp <[EMAIL PROTECTED]> wrote: I've written a plugin that will fire a mouseout when the mouse leaves the container DIV, rather tha