JavaScript Fading Tooltips (Only 2KB)

This is a lightweight (2kb) JavaScript tooltip script that is created by Leigeber, a web development blog having nice JavaScript resources.

The tooltip script has a fading animation whose alpha & speed can be set easily.

JavaScript Tooltip Script

How to use it?

  • Include the script.js in your webpage
  • Add the following JavaScript codes to the tag holding the content. For ex:

<span onmouseover="'<strong>Lorem ipsum</strong>');" onmouseout="tooltip.hide();">JavaScript tooltip</span>