the simple way to stop bubbling is to return false.
the only time I needed anything else was to activate the href after
the click got caught.
if (!e) {
var e = window.event
e.cancelBubble = true
} else if (e.stopPropagation)
e.stopPropagation()
is often overkill.
On 1/5/07, Matt Stith <[EMAIL PROTECTED]> wrote:
> Try
> $("#box").children().onemouseout( ...
>
> That might work.
>
>
> On 1/5/07, Fabien Meghazi <[EMAIL PROTECTED] > wrote:
> > Hi all,
> >
> > I'm trying to do a simple thing but I get annoyed by my lack of
> > comprehension about event bubbling and capturing.
> >
> > As you can see here :
> > http://www.amigrave.com/upload/posts/jquery/events.htm#
> >
> > I'm trying to have a div displayed over the link when we click on it.
> > When we mouse over the displayed div, I want it to disapear.
> > My problem is that in the div I have many elements and some links.
> > When the mouse come over a link, the mouseout event of the parent div
> > is triggered.
> > I want to avoid that. How can I do ?
> >
> > PS: Already tried stopPropagation()
> >
> >
> > --
> > Fabien Meghazi
> >
> > Website: http://www.amigrave.com
> > Email: [EMAIL PROTECTED]
> > IM: [EMAIL PROTECTED]
> >
> > _______________________________________________
> > jQuery mailing list
> > [email protected]
> > http://jquery.com/discuss/
> >
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
>
--
Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/