Link Annotations | JavaScriptSource

Link Annotations

JavaScriptSource Staff Dec 14, 2007

General

Many sites contain a page with links to other related resources. Generally, a description of each site is not provided, unless the visitor hovers over the TITLE attribute of the ANCHOR tag. The descriptions could be shown on the page, along with the links, but that would make it too cumbersome. This script will show and hide the link's title information right on the page. It could be used in a site map or dynamic menu as well.


Notes

Be sure to set the ANCHOR tag class in the toggle_titles() function. Then, just place the class in the links you want to use, e.g., class="linkDemo". (You don't need to place it on every link if some do not need a description.)

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: linkAnnotations.js


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(1 comment)

Thanks!![br /][br /]for[br /]quick response, help, and affirmative service.

Bipin Kumar Dec 31, 2007