Implementing these gems, however, is a piece of cake. This chapter examines
the concepts behind behaviors and the reality of using them. It details the use of
all the behaviors included with Dreamweaver, as well as some from notable thirdparty
sources. This chapter also contains tips for managing your ever-increasing
library of behaviors.
Here??™s a guarantee for you: After you get the hang of using Dreamweaver behaviors,
your Web pages will never be the same.
Understanding Behaviors,
Events, and Actions
A behavior, in Adobe parlance, is the combination of an event and an action. In
the electronic age, you push a button (the event) and something (the action)
occurs??”such as changing the channel on the TV with your remote.
In Dreamweaver, events can be something as interactive as a user??™s click of a link
or as automatic as the loading of a Web page. Behaviors are said to be attached to
a specific element on your page, whether it??™s a text link, an image, or even the
tag.
Dreamweaver has simplified the process of working with behaviors by including
default events in every object on the Web page. Instead of having to think about
399
IN THIS CHAPTER
Behavior basics
Dreamweaver Technique:
Incorporating Behaviors
Adding a behavior??™s event and
action
Dreamweaver Technique:
Modifying Behaviors
Looking at the standard
behaviors
Using Behaviors
both how you want to do something and what you want to do, you only have to focus on the what??”the
action.
Pages:
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785