Macromedia dreamweaver 8-using dreamweaver User Manual
520
Chapter 18: Using JavaScript Behaviors
4.
With the layer still selected, set the background color of the layer to the same color as the
page background in the Property inspector.
page background in the Property inspector.
5.
Click inside the layer (which should now be obscuring the rest of the page contents) and
type a message, if desired.
type a message, if desired.
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.
visitors what is happening so that they know the page contains content.
6.
Click the
<body>
tag in the tag selector in the bottom left corner of the Document window.
7.
In the Behaviors panel, select Show-Hide Layers from the Actions pop-up menu.
8.
Select the layer called
loading
from the Named Layers list.
9.
Click Hide.
10.
Click OK.
11.
Make sure that the event listed next to the Show-Hide Layers action in the behaviors list is
onLoad
. (If it isn’t, 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.)
Show Pop-Up Menu
You use the Show Pop-Up Menu behavior to create or edit a Dreamweaver pop-up menu or to
open and modify a Fireworks pop-up menu you’ve inserted in a Dreamweaver document.
open and modify a Fireworks pop-up menu you’ve inserted in a Dreamweaver document.