views:

1480

answers:

3

Hey there,

I'm looking for someone to explain how to drag and drop in javascript, I want a horizontal line with some customizable images in it.

I've had a look at the online tutorials for these but find them very hard to use.

thanks for any help.

A: 

I would recommend you check out jQuery (http://www.jquery.com), there are "draggables" and "droppables."

Andrew Theken
+2  A: 

I would recommend that you look into one of the Javascript Frameworks out there. We use prototype with scriptaculous.

You can look at a demo for Drag and Drop in Scriptaculous here. And you can run through a tutorial here.

Or look into any of the other frameworks such as JQuery or Dojo.

Noah Goodrich
+2  A: 
The article you referenced is exactly what asker needs. You should have started with "read this article", emphasizing that your code is just another example.
buti-oxa