304
Chapter 15: Page Content
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
event
argument is the JavaScript event handler through which the action is attached to
the element (for example,
onClick
,
onMouseOver
, or
onLoad
).
•
The
eventBasedIndex
argument, which is optional, is the position of the action to get. For
example, if two 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')"
)
or an array of strings if
eventBasedIndex
is omitted.
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
HEAD
section of the document and inserts them if they are missing.
Arguments
elementNode
•
The
elementNode
argument is an element node within the current document. If you omit
the argument, Dreamweaver checks all element nodes in the document for orphaned
behavior calls.
Returns
Nothing.
000_DW_API_Print.book Page 304 Wednesday, August 20, 2003 9:14 AM
Содержание DREAMWEAVER MX 2004-DREAMWEAVER API
Страница 1: ...Dreamweaver API Reference...
Страница 24: ...24 Contents...
Страница 32: ......
Страница 70: ...70 Chapter 5 Fireworks Integration...
Страница 76: ...76 Chapter 6 Flash Integration...
Страница 116: ...116 Chapter 9 The JavaBeans API...
Страница 140: ......
Страница 152: ...152 Chapter 11 Application...
Страница 218: ...218 Chapter 12 Workspace...
Страница 248: ...248 Chapter 13 Site...
Страница 292: ...292 Chapter 14 Document...
Страница 378: ...378 Chapter 17 Design...
Страница 430: ...430 Chapter 18 Code...
Страница 486: ...486 Index...