Thanks a million, Brandon - and for your blog, which I'm keeping
permanently open!

Doing as you suggested above wouldn't put the 'up' image back on
mouseout (my syntax was probably wrong), though I did manage to get it
working by doing it the long way ..... Then I rewrote the core :/

hover:function(fnOver,fnOut){return this.bind('mouseenter
focus',fnOver).bind('mouseleave blur',fnOut);}

Hope it goes in the next version!

More effusion ;)
Cherry

On Feb 3, 9:30 pm, Brandon Aaron <[EMAIL PROTECTED]> wrote:
> With jQuery 1.2.2 you can nowbindmultipleevents 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:
> > 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.

Reply via email to