Add dragging to your div elements. just adding class="drag" to the div element will make it draggable.
You can set the area in which the div(s) can be dragged using setdragBounds function.
you can add the elements that cannot be used for drag . Using their class name or id or tag names
View the complete code :
Place this code befofe the head tag :
Place this code after the body tag :
Draggable Divs in JavaScript
Comments by IntenseDebate
Posting anonymously.
Draggable Divs in JavaScript
2008-02-02T21:08:00-08:00
Bonitoo
Programming
|
Source Code
|