NetChartsServer  

ImageMapCreator

This class produces a MAP tag suitable for inclusion in an HTML page.

Each of the MapElements passed to createImageMap will result in a corresponding AREA tag within the resultant MAP tag.  Each of these AREA tags have the HREF defined in the MapElement, as well as its target.

The parameters onMouseOver and onMouseOut on the method createImageMap allow for the creation of OnMouseOver and OnMouseOut attributes on the resultant AREA tags.  The text of these attributes can include information that is specific to the MapElement corresponding to the AREA tag.  Namely, the MapElements HREF, target, or label, selectedItemIndex or selectedItemParam can be inserted anywhere in the OnMouseOver or OnMouseOut text.  This can be accomplished by using the value of label, href, target, index or @param@ in the text of your onMouseOver or onMouseOut parameter.  For example:
ImageMapCreator.createImageMap(sgi.map , sgi.uniqueID , "return popup('@label@')", "return popdown()", "javascript://")

The preceeding code would create an onMouseOver attribute in each AREA tag that had that specific MapElement's label inserted in the javascript call to popup.  It would also create onMouseOut attributes which made a call to the javascript function popdown.  As in:
<AREA COORDS="23,45,12,45" onMouseOver="return popup('245.56')" onMouseOut="return popdown()" HREF="http://www.visualmining.com">

For a list of all members of this type, see ImageMapCreator Members.

Public Class ImageMapCreator

Version

1.0.0

See Also

ImageMapCreator Members