O'Reilly logo

Sams Teach Yourself Macromedia® Dreamweaver® MX in 24 Hours by Betsy Bruce

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required