1. Home
  2. Computing & Technology
  3. JavaScript

Extended Tooltip

2. The Script

clr gif

The first step in using this script is to select the code from the text box below (there is a highlight all button beneath it to make this easier) and copy it into a file called tooltip.js.

You will also need to select the code from the text box below and copy it into a file called tooltip.css.

You next attach the script into your web page that you wish to display tooltips on by adding the following code into the head section of your page.

<script type="text/javascript" src="tooltip.js">
</script>
<link rel="stylesheet" href="tooltip.css" type="text/css" />

Now that you have the script installed on your page the next step is to define your tooltips.

1 | 2 | 3 | 4 | 5

Note that this script and the associated description of how to use it are copied from the "Ask Felgall" website with the permission of the copyright owner.

Explore JavaScript

More from About.com

  1. Home
  2. Computing & Technology
  3. JavaScript

©2008 About.com, a part of The New York Times Company.

All rights reserved.