Adobe 65011817 Extended User Guide - Page 274
HTML export objects
UPC - 883919157368
View all Adobe 65011817 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 274 highlights
Last updated 12/8/2009 270 Chapter 6: HTML export objects Fireworks provides several object types that support the output of HTML and sliced images from Fireworks. These objects let you write JavaScript scripts that create templates to output the type of HTML that suits your specific requirement (generic HTML, Dreamweaver-compatible HTML, and so on). For each HTML template, use a Slices.htt file that generates the HTML for that particular template. For more information, see the Slices.htt and Metafile.htt files that are installed with Fireworks. Note: For information on how to format nonstandard data types, such as rectangle or point, see "Formatting nonstandard data types" on page 7. BehaviorInfo object The BehaviorInfo object describes a behavior that is assigned to an element. There are seven behaviors: Status Message, Swap Image, Button Down, Swap Image Restore, Button Highlight, Button Restore, and Popup Menu (new in Fireworks 4). The following table lists the properties of the BehaviorInfo object, along with their data types and, where appropriate, acceptable values and notes. All BehaviorInfo object properties are read-only. Property (read-only) action Data type integer behaviorText borderColor borderSize cellOverColor cellUpColor creationDate dhHref string string integer string string date string Notes Specifies the type of behavior: 1 is Status Message, 2 is Swap Image, 4 is Button Down, 5 is Swap Image Restore, 6 is Button Highlight, 7 is Button Restore, and 9 is Popup Menu. In the standard (default) templates, the following values are defined: var kActionStatusMessage = 1; var kActionSwapImage = 2; var kActionButtonDown = 4; var kActionSwapImageRestore = 5; var kActionButtonHighlight = 6; var kActionButtonRestore = 7; var kActionPopupMenu = 9; For roundtrip HTML from Dreamweaver, specifies the JavaScript behaviors that don't have an equivalent in Fireworks. If action is set to 9 (Popup Menu), specifies the border color of the menu, in hexadecimal. If action is set to 9 (Popup Menu), specifies the size of the menu border in points. If action is set to 9 (Popup Menu), specifies the cell color for the Over state. If action is set to 9 (Popup Menu), specifies the cell color for the Up state. Specifies the date the document was created. If action is set to 6 (Button Highlight), specifies the URL of the highlight image used for the Down button state.