[thelist] JS drag-drop script

Matt Warden mwarden at gmail.com
Tue May 1 11:58:29 CDT 2007

On 5/1/07, Rick den Haan <rick.denhaan at gmail.com> wrote:
> I need to be able to sort the DIVs through Drag & Drop. When I start
> dragging a particular DIV, it should create a clone that moves with the
> cursor, and both the original and the clone should become semi-transparent.
> When I move it near a droppable location (vertically in between two other
> DIVs, or at the top or bottom of any TD), an indicator should be positioned
> there (can be an opaque square for the time being) of the exact size of the
> DIV that is being dragged. Dropping the DIV should snap it into its new
> position, or back to its old position.

This is a common problem and a lot of libraries do exactly what you need. See:


Matt Warden
Cleveland, OH, USA

This email proudly and graciously contributes to entropy.

More information about the thelist mailing list