Adobe 38040334 - Dreamweaver CS3 User Manual page 290

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

Advertisement

dreamweaver.behaviorInspector.getBehaviorAt()
Availability
Dreamweaver 3.
Description
Gets the event/action pair at the specified position in the Behaviors panel.
Arguments
positionIndex
• The
argument is the position of the action in the Behaviors panel. The first action in the list is at
positionIndex
position 0.
Returns
An array of two items:
• An event handler
• A function call or JavaScript statement
Example
Because
positionIndex
weaver.behaviorInspector.getBehaviorAt(2)
and
seOver"
"MM_changeProp('document.moon','document.moon','src','sun.gif','MG')"
dreamweaver.behaviorInspector.getBehaviorCount()
Availability
Dreamweaver 3.
Description
Counts the number of actions that are attached to the currently selected element through event handlers.
Arguments
None.
Returns
An integer that represents the number of actions that are attached to the element. This number is equivalent to the
number of actions that are visible in the Behaviors panel and includes Dreamweaver behavior actions and custom
JavaScript.
Example
A call to
dreamweaver.behaviorInspector.getBehaviorCount()
cript:setCookie()" onClick="MM_popupMsg('A cookie has been set.');parent.right-
frame.location.href='aftercookie.html'">
dreamweaver.behaviorInspector.getSelectedBehavior()
Availability
Dreamweaver 3.
is a zero-based index, if the Behaviors panel displays the list, a call to the
returns 2.
function returns an array that contains two strings:
for the selected link
DREAMWEAVER CS3
API Reference
dream-
"onMou-
.
<A HREF="javas-
285

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents