isMap Property

Microsoft FrontPage Visual Basic

isMap Property

Returns or sets a Boolean that represents whether the image uses an image map stored on the Web server. True indicates that the image uses a server-side map. Corresponds to the ismap attribute of a IMG element.

expression.isMap

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

HTML provides two types of image maps: server-side and client-side. A server-side map is specified by setting the ismap attribute to true in the IMG tag and creating an image map file on the server. Use the isMap property to specify whether an image uses a server-side image map.

Example

The following example specifies that the first image in the active document uses a server-side image map. This example assumes that there is at least one image in the active document.

    Dim objImage As FPHTMLImg

Set objImage = ActiveDocument.images.Item(0)
objImage.isMap = True