HTML export objects
89
ImagemapList object
The ImagemapList object is an array of ImageMap objects that describe the areas in an image
map (see
“ImageMap object” on page 88
). To access ImageMap objects, use the
ImagemapList array, as shown below:
var curImagemap = ImagemapList[i];
The ImagemapList object has only one property, which is read-only and shown in the
following table.
numCoords
integer
Number of coordinates in the area. A circle
always has 1 (the center), a rectangle has 2
(top left and bottom right), and a polygon
has 1 or more.
radius
integer
Radius of the area, if
shape
is
"circle"
.
shape
string
Acceptable values are
"circle"
,
"poly"
,
and
"rect"
.
targetText
string
Target text for this image, if any.
xCoord(index)
zero-based
index
Returns the
x
coordinate for the specified
point, in pixels. For example, the following
commands return the coordinates for the
first point:
var x = imagemap.xCoord(0);
var y = imagemap.yCoord(0);
It is possible to have negative values if
the image map area is drawn so that it
crosses the left or top sides of the image (or
sliced image).
yCoord(index)
zero-based
index
Returns the
y
coordinate for the specified
point, in pixels. See
xCoord()
.
Property (read-only)
Data type
Notes
numberOfURLs
integer
The number of image map areas in the
image map list (
0
or more).
Property (read-only) or
Method
Data type
Notes
Содержание FIREWORKS 8-EXTENDING FIREWORKS
Страница 1: ...Extending Fireworks ...
Страница 4: ...4 Contents ...
Страница 358: ...358 Fireworks JavaScript API ...
Страница 372: ...372 Index ...