longdescToolTip: ToolTips using the Longdesc
The longdesc attribute allows a detailed explanation to be linked to an image, but so little people will benefit from this method that generally nobody bothers.
This classbehaviour gives an incentive, by fetching the longdesc content in a custom tooltip using AJAX.
AJAX Tool-tips using the "longdesc" Attribute
Each image below is linked to a longdesc description. Hovering the mouse over these images will fetch and display the contents of this longdesc in a floating layer near the mouse.
Presenting the longdesc attribute this way, keeps it perfectly functional as an accessibility feature for the people who really need it. However, it also makes the extra information available to every one else.
Required Files
-
jQuery Addon Script: jquery.classbehaviours.longdesctooltip.js
- Prerequisite Script: jquery.classbehaviours.js
- Example Markup: longdescToolTip.html
- Example Stylesheet: longdescToolTip.css
- Example Longdesc: longdescToolTip_unlink.html
Comments on this Article










