Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

23 Including graphics in HTML > 23.10 Creating image maps for HTML > 23.10.2 Providing alternate text for a hotspot in an image map > 23.10.2.1 Assigning alternate text to an image-map hotspot


23.10.2.1 Assigning alternate text to an image-map hotspot

To provide alternate text for a hotspot in an image map, assign the text to the destination of the hotspot link. For example:

[GraphALT]

; destination or GraphicID#dest or URL dest = desired alt text

; a URL destination is the last part of the URL without extension

; ch01f853#RFstage = Tuner first stage

; IFstage = Intermediate Frequency stage

The text you assign becomes the content of the alt attribute of the hotspot <area> tag, unless you tell Mif2Go to use the title attribute instead; see §23.10.2.2 Using the title attribute for alternate text for a hotspot.

The destination ID must be one of the following, depending on the type of link:

[spacer]

Type of link

Form of destination ID

Link via message URL:

Base name of the destination HTML file, if the hotspot link is a message URL hypertext marker

Link via gotolink:

newlink marker content, if the hotspot link is a gotolink hypertext marker

Multiple links:

GraphicID followed by # followed by destination ID (one of the other two), to distinguish among multiple links to the same destination

Link via message URL

Suppose you use a hypertext message URL marker for an image-map link, with the following marker content:

message URL http://www.chezmoi.com/mylife.htm

You would assign alternate text for the hotspot to destination identifier mylife, which is the target file name (without path or extension):

[GraphALT

mylife = alternate text for hotspot

However, if the hypertext message URL marker content looks like this:

message URL http://www.chezmoi.com/mylife.htm#siblings

You would assign alternate text as follows:

[GraphALT

mylife#siblings = alternate text for hotspot

Link via gotolink

Suppose your image-map link is a gotolink hypertext marker, with a destination in the same document (though not necessarily the same FrameMaker file); for example:

gotolink awards.fm:firstplace

You would assign alternate text for the hotspot to destination identifier firstplace, which is the target newlinkmarker content (without the FrameMaker file name):

[GraphALT

firstplace = alternate text for hotspot

Multiple links

If you have several graphics with image-map links that all point to the same destination, and you want different alternate text for one of them, prefix the destination identifier with the file name of the graphic (no extension) and a #. For example:

[GraphALT

ab34e651#firstplace = different alternate text for hotspot



23 Including graphics in HTML > 23.10 Creating image maps for HTML > 23.10.2 Providing alternate text for a hotspot in an image map > 23.10.2.1 Assigning alternate text to an image-map hotspot