How to Drag and Drop in JavaScript / Page 2 | 2 | WebReference

How to Drag and Drop in JavaScript / Page 2 | 2


[prev]

How to Drag and Drop in JavaScript [con't]

You now have everything you need to do almost anything you can think of when it comes to dragging or dropping items. Go wild!

These final 3 demos show each event in a history window. If you move the mouse quickly the items in the history window are basically unreadable. If you don't understand the logic of our last script move the mouse around very slowly and watch what happens.

Demo - Drag and Drop any item

Item #1
Item #2
Item #3
Item #4
Item #5
Item #6
Item #7
Item #8
Item #9
Item #10
Item #11
Item #12
History
Demo - Drag and Drop any item
  1. Item #1
  2. Item #2
  3. Item #3
  4. Item #4
  5. Item #5

Demo - Drag and Drop any item

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

About the Author

Mark Kahn is a Web Developer and DBA. Mark can be contacted through his Web site.

Original: April 14, 2006

[prev]