Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text links under Nav image map for those with images turned off?

Status
Not open for further replies.

DonCorr

Technical User
May 7, 2003
4
US
With images turned off, users don't see my navigation image map. Is there a way to put text links under the image map?

DonCorr
 
In the <area> tag for the individual elements of the image map you can provide a value for the &quot;alt&quot; attribute. Don't know if this will actually serve as a text link when the image map is not available, but &quot;alt&quot; is always touted as being an important attribute to use in the event of text-only browsers.

If the text itself does not act as a link, maybe you can make the &quot;alt&quot; text an html tag for the link...

Another option would be to have your image map as a div and a table/table cell holding your text links as div that is hidden by default. On page load, test for whether or not images are enabled (don't know exactly how to do this,
if (document.images)
perhaps?) and if they're not, hide the image map and show the text link div.

Sorry I can't be of more help. I tried to test what would happen to the image map with images disabled... I set Netscape to not load images, but it does any. Imagine that.

Good luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top