Submit your widget

The Simplest jQuery Tooltip Ever

Created 13 years ago   Views 4506   downloads 1076    Author n/a
The Simplest jQuery Tooltip Ever
View DemoDownload
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="" class="tooltip" title="Web Standards Magazine">Roll over for tooltip</a>