MACROMEDIA DREAMWEAVER MX 2004-USING DREAMWEAVER Use Manual page 392

Hide thumbs Also See for DREAMWEAVER MX 2004-USING DREAMWEAVER:
Table of Contents

Advertisement

To create a preload layer:
Click the Draw Layer button in the Common category of the Insert bar and draw a large layer
1
in the Document window's Design view.
Be sure the layer covers all the content on the page.
In the Layers panel, drag the layer name to the top of the list of layers to specify that the layer
2
should be at the front of the stacking order.
Select the layer if it's not selected, and name it loading, using the leftmost text box in the layer
3
Property inspector.
With the layer still selected, set the background color of the layer to the same color as the page
4
background in the Property inspector.
Click inside the layer (which should now be obscuring the rest of the page contents) and type a
5
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.
Click the
6
<body>
In the Behaviors panel, select Show-Hide Layers from the Actions pop-up menu.
7
Select the layer called
8
Click Hide.
9
Click OK.
10
Make sure that the event listed next to the Show-Hide Layers action in the behaviors list is
11
. (If it isn't, select the event and click the downward-pointing triangle that appears
onLoad
between the event and the action. Select
392
Chapter 18: Using JavaScript Behaviors
tag in the tag selector in the bottom left corner of the Document window.
from the Named Layers list.
loading
from the list of events in the pop-up menu.)
onLoad

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER MX 2004-USING DREAMWEAVER and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents