SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 142 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


JavaScript behaviors
Through the development of JavaScript behaviors, Dreamweaver combines the power of JavaScript with the
ease of a point-and-click interface. A behavior is defined as a combination of an event and an action??”
whenever your Web page user does something that causes something else to happen, that??™s a behavior.
What makes behaviors extremely useful is that they require no programming whatsoever.
The previously mentioned Spry effects are all, essentially, behaviors and can be found in the
Behaviors panel under the Effects listing.
Behaviors are JavaScript-based, and this is significant because JavaScript is supported to varying degrees by
existing browsers. Dreamweaver has simplified the task of identifying which JavaScript command works
with a particular browser. You simply select the Web page element that you want to use to control the
action and open the Behaviors panel. As shown in Figure 2-17, Dreamweaver enables you to pick a
JavaScript command that works with all browsers, a subset of browsers, or one browser in particular. Next,
you choose from a full list of available actions, such as go to a URL, play a sound, pop up a message, or start
an animation. You can also assign multiple actions to an event and even determine when they occur.


Pages:
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154