User Guide
272 Fireworks JavaScript API
Example
The following command sets the text attributes of the alt tag of the selected slices to "This is
my alt tag
":
fw.getDocumentDOM().setHotspotAltTag("slices","This is my alt tag");
dom.setHotspotColor()
Availability
Fireworks 3.
Usage
dom.setHotSpotColor(whatToSet, color)
Arguments
whatToSet Acceptable values are "hotspots", "slices", and "hotspots and slices".
color A color string (see “Color string data type” on page 11).
Returns
Nothing.
Description
Sets the color to the specified value for the Hotspots and slices in the selection.
Example
The following command sets the color of the selected Hotspots to red:
fw.getDocumentDOM().setHotspotColor("hotspots", "#ff0000");
dom.setHotspotRectangle()
Availability
Fireworks 3.
Usage
dom.setHotspotRectangle(boundingRectangle, bMakeCopy)
Arguments
boundingRectangle A rectangle that specifies the size of the new Hotspot or slice (see
“Rectangle data type” on page 12).