Draggable Divs in JavaScript

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 :



Related Posts by Categories



Widget by Hoctro

Comments

Loading... Logging you in...
  • Logged in as
There are no comments posted yet. Be the first one!

Post a new comment

Comments by

Enter your email address:

Delivered by FeedBurner

Followers