Tooltip.js is a Javascript library (annoyingly everything is described as Web 2.0 now) which makes it easy to add tooltips to your webpages. It’s built on top of prototype.js and Scriptaculous. There is a lot of flexibility in customizing your tooltips, it’s mainly accessible and uses unobtrusive javascript.

All you need to do is to add the "tooltip" class to a div element and it’ll add a tooltip to the element which came before it. It’ll automatically add a "Close" link.

You can also manually register tooltips if you prefer to have more control or to do it the old way. Click on the Star Wars image on the Tooltip.js site for an example of what tooltip.js does. 

Leave a Reply

Your email address will not be published. Required fields are marked *