To drag an element or image around on your Web page, just attach this drag handler to any number of elements on the page and you will be able to drag them all.
Note that the elements must be positioned either relatively or absolutely.
Java Script code: