> It doesn't behave the same as a standard tooltip, though. Tooltips don't
> usually track the mouse - once a tooltip is displayed it doesn't move. It
> would be nice to have that option. In fact, instead of the defaults being
> no
> delay and mouse tracking, I'd suggest making the defaults follow the most
> common tooltip behavior - a short delay and no mouse tracking.
Good suggestion! I'll add that.
>
> Whatever you make the defaults, it would be more flexible to change the
> delay argument to an args object with properties like delay and track and
> whatever else comes up later. Then you could code like this:
>
> $(foo).Tooltip({ delay:250, track:true });
How about:
$("a").Tooltip({show: 250, track: true});
So show would have either a Number value (delay) or a String like "onclick" or
"click". "click" would be intersting, then I could implement that like this:
[...]
if(typeof settings.show == "String")
this[settings.show](show);
[...]
According to Klaus' request to show the tooltip when the element is clicked.
--
Jörn Zaefferer
http://bassistance.de
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/