you could add an event of type mouseover/mouseenter to the container
of menuCell div, and make the highlight bar disappear upon that event
too.

jgabios

On Fri, Jan 16, 2009 at 8:31 AM, batman42ca <[email protected]> wrote:
>
> I have the following sample code for a horizontal menu with a
> "background" that slides around to follow the mouse from one link to
> another:
>
>  http://batman42ca.co.cc/test.htm
>
> The background is actually an absolutely positioned div that I morph
> around to rest on the link under the mouse cursor.
>
> It mostly works except for one problem. I want the highlight bar to
> disappear when I leave the div surrounding the menu links. If I move
> the mouse slowly, It works. If I move the mouse too quickly up or down
> off a link and out of the surrounding div, it seems my mouseleave
> event doesn't fire.
>
> Are there event experts out there that can tell me what I'm doing
> wrong and how to fix it? I see the same problem on both Firefox 2 and
> IE6.

Reply via email to