• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

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 use it to show or hide a layer on the web page. You don't usually apply a behavior to the object that it affects, so you'll need to have another object on the page that triggers the behavior. For instance, Dreamweaver won't allow you to attach the Show-Hide Layers behavior to the layer you want to hide.

To begin, you need to add an image or a hyperlink that captures the user's click and hides the layer. Dreamweaver is also smart enough to not display the Show-Hide Layers behavior in the Add Action drop-down menu if you don't actually have any layers in the web page, so you'll need to add a layer to the page before you add the behavior.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint