One Tooltip, Many Context Elements
One Tooltip, Many Context Elements
In the example below, a single Tooltip instance is used to display tooltips for multiple context elements.
- For one set of links (Group A), the Tooltip text is provided by the title attribute of the link
- For the other set (Group B), we'll use context related events to set the text property
just before the the tooltip is displayed for each link
Group A: Single Tooltip, text set using title
Group B: Single Tootip, text set using events
yui_2.7.0b.zip( 4,431 k)