
159
EXTENDING FIREWORKS
The Document object
Las
t
up
d
a
ted
12/8/2009
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
Boolean. If
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.
Description
Sets the hotspot text to the specified value for the hotspots and slices in the selection.
Example
The following command creates a slice and inserts the HTML text,
"I am HTML text"
:
fw.getDocumentDOM().setHotspotText("Slice ","I am HTML text", null, true);
Содержание 65011817 - Fireworks CS4 - Mac
Страница 1: ...Extending ADOBE FIREWORKS CS4...