Example 12: Dynamic Tooltips

Many users have requested a way to dynamically update the tooltip content after first creation. Well, here it is! There are many ways to get this done, but the easiest is certainly by maintaining an external collection of content and then referencing this collection (or a pointer to this collection) from the domTT_activate() call. It is also possible to modify the existing tooltip, but it is much more difficult and requires DOM work.

Check the content | Another dynamic tip | What time is it?

toggle content 1 | toggle content 2 | toggle content 3

* The first method requires the 'closeAction' option to be 'destroy' since the tip must be recreated each time. This technique does not work with fading tips because of how they are closed (never destroyed).

* The second method uses the helper function domTT_update() to modify the content of an existing tip. The tip must exist for this to work.

«Example 11
Example 13»