The Show-Hide Layers action shows, hides, or restores the default visibility of one or more layers. This action is useful for showing information as the user interacts with the page. For example, as the user rolls the mouse pointer over an image of a plant, you could show a layer that gives details about the plants growing season and region, how much sun it needs, how large it can grow, and so on.
Show-Hide Layers is also useful for creating a preload layer--that is, a large layer that obscures the contents of the page at first and then disappears when all the page components have finished loading.
Repeat this step to create additional layers.
If Show-Hide Layers is unavailable, you probably have a layer selected. Because layers do not accept events in both 4.0 browsers, you must select a different object--such as the body
tag or a link (a
tag)--or change the target browser to Internet Explorer 4.0 in the Show Events For pop-up menu.
If it isnt, select another event from the pop-up menu. If the events you want are not listed, change the target browser in the Show Events For pop-up menu.
When viewed in a Netscape Navigator browser window, layers may shrink to fit the content. To keep this from happening, add text or images to layers, or set layer clip values.
Be sure the layer covers all the content on the page.
For example, "Please wait while the page loads" or "Loading..." are messages that tell visitors what is happening so that they know the page contains content.
<body>
tag in the tag selector in the bottom left corner of the Document window.
loading
from the Named Layers list.
onLoad
. (If it isnt, select the event and click the downward-pointing triangle that appears between the event and the action. Select onLoad
from the list of events in the pop-up menu.)