1. Select Insert > Layer or click the Draw Layer button on the Insert bar and draw a
layer in the Document window’s Design view.
2. Select the body tag by clicking in the tag selector at the bottom of the
Document window.
3. Open the Behaviors panel.
4. Click the Plus (+) button and select Drag Layer from the Actions pop-up menu.
If Drag Layer 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.
5. In the Layer pop-up menu, select the layer that you want to make draggable.
6. Select either Constrained or Unconstrained from the Movement pop-up menu.
Unconstrained movement is appropriate for puzzles and other drag-and-drop
games. For slider controls and moveable scenery such as file drawers, curtains,
and mini-blinds, select constrained movement.
7. For constrained movement, enter values (in pixels) in the Up, Down, Left, and
Right text boxes.
Values are relative to the starting position of the layer. To constrain movement
within a rectangular region, enter positive values in all four text boxes. To allow
only vertical movement, enter positive values for Up and Down and 0 for Left and
Right. To allow only horizontal movement, enter positive values for Left and
Right and 0 for Up and Down.