
270
Las
t
up
d
a
ted
12/8/2009
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)
Data type
Notes
action
integer
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;
behaviorText
string
For roundtrip HTML from Dreamweaver, specifies the
JavaScript behaviors that don’t have an equivalent in
Fireworks.
borderColor
string
If
action
is set to 9 (Popup Menu), specifies the border color of
the menu, in hexadecimal.
borderSize
integer
If
action
is set to 9 (Popup Menu), specifies the size of the
menu border in points.
cellOverColor
string
If
action
is set to 9 (Popup Menu), specifies the cell color for
the Over state.
cellUpColor
string
If
action
is set to 9 (Popup Menu), specifies the cell color for
the Up state.
creationDate
date
Specifies the date the document was created.
dhHref
string
If
action
is set to 6 (Button Highlight), specifies the URL of the
highlight image used for the Down button state.
Содержание 65011817 - Fireworks CS4 - Mac
Страница 1: ...Extending ADOBE FIREWORKS CS4...