MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Spécifications Page 384

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 692
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 383
Chapter 31384
dreamweaver.behaviorInspector.getBehaviorAt()
Availability
Dreamweaver 3
Description
Gets the event/action pair at the specified position in the Behaviors panel.
Arguments
positionIndex
Returns
An array of two items:
An event handler
A function call or JavaScript statement
Example
Because positionIndex is a zero-based index, if the Behaviors panel displays the list, a call to
dreamweaver.behaviorInspector.getBehaviorAt(2) returns an array that contains two
strings:
"onMouseOver" and
"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() for the selected link <A
HREF="javascript:setCookie()" onClick="MM_popupMsg(’A cookie has been
set.’);parent.rightframe.location.href=’aftercookie.html’">
returns 2.
dreamweaver.behaviorInspector.getSelectedBehavior()
Availability
Dreamweaver 3
Description
Gets the position of the selected action in the Behaviors panel.
Vue de la page 383
1 2 ... 379 380 381 382 383 384 385 386 387 388 389 ... 691 692

Commentaires sur ces manuels

Pas de commentaire