<class home>  <Jscript>   <back   next>

Adding Behaviors

You add behaviors in Dreamweaver by selecting objects in the document window and choosing behaviors from the Behavior Panel.


Where is the Behavior Panel?

You can get to the behavior panel through:
selecting Window>Behaviors.

What does the Panel look like?


How do I add the Behavior?

1. In the document window, select the object you want to apply a behavior to. If it is the whole page, select the whole body tag, opening to closing, or click on the work <body> in the bottom of the document window.

2. In the behaviors panel, click on the "+" button to pull-down from a list of possible behaviors for your object and to select a browser version you are making this for.

3. Select a browser version from the submenu: "Show Events For".

4. Select the "+" button again and choose an available action.

5. Fill out the dialog box for the action.

6. Click on the arrow to the right of the event to see or change the event.

*note: you can add more than one event to an object, such as setting onMouseOver and onMouseOut for the same item. You can also add more than one action to an event and they will play in order that they are listed.