From 3888b786a0fc15ea309c59861d6221bc6a66aaf7 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Thu, 4 Jan 2007 23:19:31 +0000 Subject: removed examples --- javascript/examples/example9.html | 56 --------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 javascript/examples/example9.html (limited to 'javascript/examples/example9.html') diff --git a/javascript/examples/example9.html b/javascript/examples/example9.html deleted file mode 100644 index 4135f88..0000000 --- a/javascript/examples/example9.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - [DOM Tooltip] Example 9: Auto-Generated Tips - - - - - - - -
Example 9: Auto-generated Tips
-
-

In order to reduce the footprint of the DOM Tooltip library, the tips can be automatically created by reading the 'title' attribute on the page elements. To enable this feature, call the function 'domTT_replaceTitles()' at the bottom of the page.* This function looks for elements that contain the class 'tooltip' and have a 'title' attribute set. The title attribute is replaced with a custom tooltip. The 'domTT_replaceTitles()' function also takes an optional decorator function, which can be used to customize the rendering of the title content within the tooltip.

-

Another way to abstract the usage of the DOM Tooltip library is to use the integration with the behaviour library, which is used in the third example below. This library uses CSS selectors to define javascript behaviour on an html element. This method of defining tooltips is strongly encouraged, since it enables seperation of html and javascript. It also prevents lock-in to the DOM Tooltip library.

-

- Need help? - | - Recommended reading - | - Clean up your markup -

-

* Using this feature takes away some of the functionality of the tooltip library. This problem might be addressed in future releases.

-
-
«Example 8
Example 10»
- - - -- cgit v1.2.3