Submit your widget

The Simplest jQuery Tooltip Ever

Created 13 years ago   Views 4534   downloads 1087    Author n/a
The Simplest jQuery Tooltip Ever
View DemoDownload
82
Share |

What this script does is adds an element to the body when you roll over a certain object. That element's appearance is predefined with css (positioned absolute and styled) so all we need to do is fill the element with content, calculate mouse position and make it move accordingly. When cursor is moved over he object, element moves with it and when cursor roll out, the element is deleted.

The script takes a title attribute of an A tag and place it inside the popup element.
Html looks like this:

<a href="http://cssglobe.com" class="tooltip" title="Web Standards Magazine">Roll over for tooltip</a>