spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column16


A Final Word

Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

I was working on my computer two weeks ago, when I noticed how much tooltips help me get my work done. Windows applications are loaded with tooltips, so I came up with two main questions:

  • Why do all the tooltips have the same font and background color? Why don't they feature any graphic elements?
  • Why do I rarely see tooltips on web pages? Why don't links support tooltips on both browsers?

This column answered these questions. We presented a script that creates dynamic, full-featured tooltips for standard hypertext links. You can add tooltips to provide additional information about your links.

Like always, we focused on a backward-compatible, cross-browser solution. Our tooltips work on both fourth-generation browsers, on all platforms. They are also compatible with older browsers, because they don't affect them. In other words, this is a win-win script. In this column you learned:

  1. How to construct a tooltip with HTML.
  2. How to define a stylesheet for each tooltip on the page.
  3. How to associate a tooltip with a specific link via its event handlers.
  4. How to find out when the tooltip should be displayed.
  5. How to display a tooltip when required.
  6. How to clear a tooltip when the user removes the pointer from the link.
  7. How to associate a tooltip with multiple links that share the same URL.

For your reference, you may view the code for the first and second versions of the script.

More Resources from Doc JavaScript
Columns Popular Columns Tips Tools
Latest Columns
41-50 | 31-40 | 21-30
11-20 | 1-10
Working with Windows
JavaScript and Frames
Bookmarklets
Random Tips
Personalized Tips
RSS Channels
Menu Builder
Rollover Builder
Rotation Builder
Reference Tip Categories (want one?)
Links
For Your Site
Did you learn something? Do you like this site? Please link to us!

http://www.internet.com

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint


Created: March 26, 1998
Revised: March 26, 1998

URL: http://www.webreference.com/js/column16/final.html