-------- Original-Nachricht -------- Datum: Wed, 8 Nov 2006 16:44:09 -0600 Von: "Andy Matthews" <[EMAIL PROTECTED]> An: "[jQuery]" <[email protected]> Betreff: [jQuery] Tweak to Jorn\'s ToolTip plugin
> I'm going to use Jorn's plugin for a site I manage, but I didn't think it > was all that useful to have the link or the img src be displayed. I know I > can turn it off, but I chose instead to go behind the scenes and make the > P > tag display alternately provided content: > > http://www.modernessentials.com/tooltiptest.cfm > > What I did is to split the title attribute like so: > > This is the title:and this is the content. > > Then I tweaked the code to split on the colon and display the first > portion > as the H3, with the second portion being displayed in the P tag. > > Thoughts? I like the idea: It provides more useful stuff for the user, with a simple syntax. It's content is still readable without JS, though it may look a little weird. Maybe you want to use something like this: "bla title; bla content". Or stick to the colon, but put a space behind it. I think about adding this to my plugin as an option: content: null // if given, split the title attribute according to the given delimiter and display an additional p tag Eg: <a title="bla; blub">...</a> $('a').Tooltip({content: "; "}); Or: <a title="bla - blub">...</a> $('a').Tooltip({content: " - "}); Cool? -- Jörn Zaefferer http://bassistance.de -- GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist! NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
