Showing and Hiding Layers
Now you're ready to add your first behavior. The Show-Hide Layers behavior has a name that pretty much says it all. You can show or hide a layer on the Web page. You need to have an event that triggers the action.
Selecting the Behavior
You will now use the Show-Hide Layers behavior to create a layer that your behavior will affect. The Show-Hide Layers behavior will be grayed out if there aren't any layers in your Web page. It's important to name your layers when using the Show-Hide Layers behavior. The Show-Hide Layers dialog box displays all the layers on the page by name, so it helps to have a meaningful name. Type some text in the layer, insert an image into it, or give it a background color.
To add a Show-Hide Layers ...
Get Sams Teach Yourself Macromedia® Dreamweaver® MX in 24 Hours 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.