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.

Need help? | Recommended reading

Note: 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»