|
Adding Behaviors
Behaviors allow your visitors to interact with
your Web pages to change the page in different ways. When using
behaviors you specify the action and the event that triggers that
action.
Use
the Dreamweaver behaviors panel to create jump menus, swap images,
pop-up windows, play sound, validate forms and more. Dreamweaver
behaviors make it easy to add interactivity to your site.
Some of the most popular behaviors:
Pop-Up Windows
The 'Open browser Window' behavior can be used for promotional
ads, zooming in to pictures etc. It allows you to open a browser
window in any size you specify.
Sample: Click here.
To open a pop-up window on page load:
- In code view place your cursor within the opening
<BODY> tag.
- Open the behaviours panel.
-
Select Open Browser Window option.
- Fill in the fields in the dialog box.
- Select OK.
Play Sound
Play sound on rollovers, on page load etc.
Sample: Rollover to play sound.
Jump Menus
If you have a lot of links on a page and don't have enough of space
to fit them all. A simple solution is to add the links with
a jump menu.
Sample:
Swap Images
Use swap images to liven up your site and add a bit of interactivity.
Click
here to learn how to create swaps in Fireworks
|