With jQuery 1.2.2 you can now bind multiple events at once. Just
separate them with a space. I'd also suggest using the new mouseenter
and mouseleave events.

$('a')
    .bind("mouseenter focus mouseleave blur",
        function(event) { console.log(event.type); });

--
Brandon Aaron


On Feb 3, 12:31 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> ... at least, that's what I think I need to do!
>
> Trying to do a simple a: rollover - but, being a perfectionist, I want
> the rollover behaviour triggered by mouseover OR focus. And then, of
> course, on mouseout OR blur.
>
> I tried sticking 2 events together with a | , without success.
> However, this is my first attempt at 'binding' so might have done the
> whole thing wrong.
>
> How should I do this?
>
> Thanks :) Cherry.

Reply via email to