Adobe 38040334 - Dreamweaver CS3 User Manual page 286

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

• The
eventBasedIndex
argument is a zero-based index; if two actions already are associated with the specified event,
eventBasedIndex
and you specify
eventBasedIndex
the action is added after all existing actions for the specified event.
Returns
Nothing.
dom.getBehavior()
Availability
Dreamweaver 3.
Description
Gets the action at the specified position within the specified event. This function acts on the current selection and
is valid only for the active document.
Arguments
event, {eventBasedIndex}
• The
argument is the JavaScript event handler through which the action is attached to the element (for
event
example,
,
onClick
onMouseOver
• The
eventBasedIndex
actions are associated with the specified event, 0 is first and 1 is second. If you omit this argument, the function
returns all the actions for the specified event.
Returns
A string that represents the function call (for example,
"MM_swapImage('document.Image1','document.Image1','foo.gif','#933292969950')"
strings if
eventBasedIndex
dom.reapplyBehaviors()
Availability
Dreamweaver 3.
Description
Checks to make sure that the functions that are associated with any behavior calls on the specified node are in the
section of the document and inserts them if they are missing.
HEAD
Arguments
elementNode
• The
argument is an element node within the current document. If you omit the argument, Dream-
elementNode
weaver checks all element nodes in the document for orphaned behavior calls.
Returns
Nothing.
argument, which is optional, is the position at which this action should be added. The
as 1, this action executes between the other two. If you omit this argument,
, or
).
onLoad
argument, which is optional, is the position of the action to get. For example, if two
is omitted.
DREAMWEAVER CS3
281
API Reference
) or an array of

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents