Updating multiple frames through a single link used to
be difficult??”but no more. Dreamweaver makes it easy by enabling you to attach several Go To URL actions
to the same event, onClick. In addition, you are not restricted to attaching multiple instances of the
same action to a single event. For example, in a site that uses a lot of multimedia, you can tie all the following
actions to a single onClick event:
400
Adding Advanced Design Features Part III
n Begin playing an audio file (with the Play Sound action).
n Move an AP element across the screen (with the Play Timeline action).
n Display a second graphic in place of the first (with the Swap Image action).
n Show the copyright information for the audio piece in the status bar (with the Set Text of Status
Bar action).
You can even determine the order of execution for the actions connected to a single event.
With Dreamweaver behaviors, hours of complex JavaScript coding are reduced to a handful of mouse clicks
and a minimum of data entry. All behavior assigning and modification are handled through the Behaviors
panel.
Using the Behaviors panel
The Behaviors panel provides two columns (see Figure 12-1) that neatly sum up the behaviors concept in
general: events and actions. After you attach a behavior, the triggering event (onClick, onMouseOver,
and so on) is shown on the left, and its associated action??”what exactly is triggered??”is on the right.
Pages:
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788