Make your own free website on Tripod.com


Advanced Dreamweaver

Lesson 5 - Dreamweaver Behaviors

 

 

Examples of Dreamweaver Behaviors

 

1. PopUp Message Behavior

The popup message behavior displays a Javascript alert or any valid Javascript function call, property, global variable or other expression. In the example below, the popup message behavior action (displaying the current date/time) occurs with an onclick event (i.e. displays the current date/time when the user clicks on the link "HERE").

Click HERE for current date/time.

 

2. PopUp Menu

The popup menu behavior is used to create and edit Dreamweaver popup menus. In the example below, the popup menu behavior action is displaying a list of school websites. This action is initiated by a mouseover event on the link called "Visit our school websites".

Visit our school websites:

 

3. Open Browser Window Behavior

The open browser window behavior allows you to display additional information in another window. In the example below, the behavior action is to display the news website called CNN in a separate browser window. This action is initiated by an onclick event (clicking on the link CNN.com).

Review today's news at CNN.com

 

4.Validate Form Behavior

The validate form behavior is used to validate the type and format of the information that users type into a form. In the example below, the behavior action dictates the following;
- all fields are required
- the email field requires an email address
- the age field reqires a numeric value ranging from 1 to 100

This behavior action is initiated by an onsubmit event (i.e. when the user clicks on the submit button to submit the information in the form)

 

 

5. Jump Menu Behavior

The jump menu behavior is attached to a jump menu created within Dreamweaver. Once created, the jump menu can be edited by selecting the jump menu and, in the behavior panel, double clicking on the action "jump menu". In the example below, the jump menu gives you the behvior action of jumping to different pages within the site. The event that triggers this behavior is the user selecting the down arrow and choosing the page to which they want to navigate (i.e.an onclick event).