Chapter 11

Using Behaviors

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

Behaviors are truly one of the power tools in Dreamweaver. With Dreamweaver behaviors, any web designer can make AP elements appear and disappear, execute any number of rollovers, and even apply an advanced JavaScript effect—all without knowing even a snippet of JavaScript. In the hands of an accomplished JavaScript programmer, Dreamweaver behaviors can be customized or created from scratch to automate the most difficult web effect.

Creating behaviors is one of the more challenging Dreamweaver features to master. 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 third-party sources. This chapter also contains tips for managing your ever-increasing library of behaviors.

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 ...

Get Dreamweaver CS6 Bible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.