
Using Behaviors
437
Note that most events can be used only with certain page elements. To find
out what events a given browser supports for a given page element, insert the
page element in your document and attach a behavior to it, then look at the
Events pop-up menu in the Behaviors panel. For a very detailed advanced look
at precisely which tags can be used with a given event in a given browser, search
for the event in one of the files in your Dreamweaver/Configuration/Behaviors/
Events folder.
onAbort
(NS3, NS4, IE4, IE5) is generated when the visitor stops the browser
from completely loading an image (for example, when the visitor clicks the
browser’s Stop button while an image is loading).
onAfterUpdate
(IE4, IE5) is generated when a bound data element on the page
has finished updating the data source.
onBeforeUpdate
(IE4, IE5) is generated when a bound data element on the
page has been changed and is about to lose focus (and is therefore about to
update the data source).
onBlur
(NS3, NS4, IE3, IE4, IE5) is the opposite of
onFocus
. The
onBlur
event
is generated when the specified element is no longer the focus of the visitor’s
interaction. For example, when a visitor clicks outside a text field after clicking in
the text field, the browser generates an
onBlur
event for the text field.
onBounce
(IE4, IE5) is generated when a marquee element’s contents have
reached the boundary of the marquee.
onChange
(NS3, NS4, IE3, IE4, IE5) is generated when the visitor changes a
value on the page, such as when the visitor chooses an item from a menu, or when
the visitor changes the value of a text field and then clicks elsewhere on the page.
onClick
(NS3, NS4, IE3, IE4, IE5) is generated when the visitor clicks the
specified element, such as a link, button, or image map. (The click is not complete
until the visitor releases the mouse button; use onMouseDown to make
something happen as soon as the button is pressed down.)
onDblClick
(NS4, IE4, IE5) is generated when the visitor double-clicks the
specified element. (Double-clicking is defined as quickly pressing and releasing the
mouse button while pointing to the element.)
onError
(NS3, NS4, IE4, IE5) is generated when a browser error occurs while a
page or image is loading.
onFinish
(IE4, IE5) is generated when the contents of a marquee element have
completed a loop.
onFocus
(NS3, NS4, IE3, IE4, IE5) is generated when the specified element
becomes the focus of the visitor’s interaction. For example, clicking in a text field
of a form generates an
onFocus
event.
onHelp
(IE4, IE5) is generated when the visitor clicks the browser’s Help button
or chooses Help from a browser menu.
Содержание 38028779 - Macromedia Dreamweaver - Mac
Страница 1: ...macromedia Using Dreamweaver...
Страница 148: ...Chapter 4 148...
Страница 296: ...Chapter 12 296...
Страница 472: ...Chapter 18 472...
Страница 512: ...Chapter 21 512...
Страница 562: ...Appendix 562...