Constraining the Movement of Your Layer

After you've created your drag and target layers and given them all names, you're ready to apply the Drag Layer behavior. To use the Drag Layer behavior

1.
Select the <body> tag from the tag selector in the Dreamweaver status bar.
2.
Click the + button in the Behaviors panel and select Drag Layer. The Drag Layer dialog box appears, as shown in Figure 17.2.
Figure 17.2. The Drag Layer dialog box has a basic and an advanced section.

3.
Select the name of a layer to be dragged from the Layer drop-down menu.
4.
Select Constrained from the Movement drop-down menu. Four boxes appear for you to enter the pixel value ...

Get Sams Teach Yourself Macromedia® Dreamweaver® MX in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.