<class home>  <Jscript>   <back   next>

Dragging layers

layers can be dragged and set to snap to certain areas of the page.



example:

Snap to this square


drag layer


Drag Layer

1. Make a layer you want to drag

2. In the Behaviors panel, select a browser (4.0 and later).

3. In the Document window, select an object (a, body, img, select)

4. In the Behaviors panel, add the Drag Layer option.

5. In the dialog box, enter in drop target options if you want the layer to snap to an area on the page

5. Click o.k.

*note: there is an advanced tab in the dialog box which will give you options for:
-allowing a user to drag a layer by being on any part of it or a specific part of it
-change the z-index of the layer so it will be on top when a user drags it
-call a javascript