User Guide
274 Fireworks JavaScript API
Returns
Nothing.
Description
Sets the target tag text to the specified value for the Hotspots and slices in the selection.
Example
The following command links the currently selected slices to the parent window:
fw.getDocumentDOM().setHotspotTarget("slices", "_parent");
dom.setHotspotText()
Availability
Fireworks 3.
Usage
dom.setHotspotText(whatToSet, textString, urlToMatch, bUpdateAttributes)
Description
Sets the Hotspot text to the specified value for the Hotspots and slices in the selection.
Arguments
whatToSet Acceptable values are "hotspots", "slices", or "hotspots and slices".
textString A string that specifies the text to be used for the Hotspot or slice.
urlToMatch A string that specifies a URL that is already assigned to one or more Hotspots
in the document. If this value is not
null, the URLs of all Hotspots or slices in the document
that have
urlToMatch as their URL are changed to textString. Note: The URLs of both
selected and unselected Hotspots or slices are changed.
bUpdateAttributes If bUpdateAttributes is true, changed Hotspots inherit the color,
target, and alt tag text that were most recently associated with the new text value. For
example, suppose
textString is "http://www.mywebsite.com", and the last time "http:/
/www.mywebsite.com"
was used, it was used with a color of blue, a target of none, and an alt
tag of “Link to My Home Page”. If
bUpdateAttributes is true, any Hotspot or slice whose
text is now being changed to
"http://www.mywebsite.com" will also have a color of blue, a
target of none, and an alt tag text of
"Link to My Home Page".
Returns
Nothing.