
276
EXTENDING FIREWORKS
HTML export objects
Las
t
up
d
a
ted
12/8/2009
ImageMap object
The following table lists the properties and methods of the ImageMap object, along with their data types and, where
appropriate, acceptable values and notes. All ImageMap object properties are read-only.
ImagemapList object
The ImagemapList object is an array of ImageMap objects that describe the areas in an image map (see “
ImageMap
object
” on page 276). 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.
Property (read-only) or Method
Data type
Notes
altText
string
The alternate text description for this slice, if any.
behaviors
object
BehaviorsList object that contains the behaviors for this slice
(see “
BehaviorsList object
” on page
273).
hasAltText
Boolean
Set to
true
if the slice has an alternate text description.
hasHref
Boolean
Set to
true
if the slice has a URL.
hasTargetText
Boolean
Set to
true
if the target text is not empty.
href
string
The URL link for this slice, which is expressed as
file://URL
.
left
string
Left coordinates of the image map.
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.
top
string
Top coordinates of the image map.
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).
Содержание 65011817 - Fireworks CS4 - Mac
Страница 1: ...Extending ADOBE FIREWORKS CS4...