Adobe 65011817 Extended User Guide - Page 163
dom.setHotspotText
UPC - 883919157368
View all Adobe 65011817 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 163 highlights
Last updated 12/8/2009 EXTENDING FIREWORKS 159 The Document object 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);