From 710c48f908290c52b93e57e29741fcd0696b2d22 Mon Sep 17 00:00:00 2001 From: Thomas Keil Date: Thu, 4 Jan 2007 22:29:18 +0000 Subject: *** empty log message *** --- javascript/examples/example12.html | 61 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 javascript/examples/example12.html (limited to 'javascript/examples/example12.html') diff --git a/javascript/examples/example12.html b/javascript/examples/example12.html new file mode 100644 index 0000000..bd396da --- /dev/null +++ b/javascript/examples/example12.html @@ -0,0 +1,61 @@ + + + + [DOM Tooltip] Example 12: Dynamic Tooltips + + + + + + +
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»
+ + -- cgit v1.2.3