Make Movable
Friday, May 22, 2009 at 9:20AM Have you ever wanted to make your html elements move around? Well this function will make that happen for you. All you need to do is call "makeMovable([your html element goes here]);". This type of function can be used for UI constructs like popup windows and error dialogs, or just for impressing people with your mad skillz (jk!).
You can also specify a "Handle" for your object (in my experience this is the most common usage). When you specify a handle, your target object will only move when the handle is being dragged. Just use the following code: "makeMovable([your target element goes here],[your handle element goes here]);" It is recommended that the "Handle" element is a child of the "Target" element.
JavaScript,
UI,
element,
move in
Tips 

Reader Comments