radiofriendlybox
03-08-2008, 01:36 AM
i've been googling all day, but haven't found exactly what i was looking for.
i'm searching for a script that allows me to drag elements around the screen (like an image, div, etc.). i want the element to return to its original position if it is not dropped in the correct place (let's say another div). if it is dropped in the correct place, something happens (like a new window opening).
so far, i've found scripts that let me drag items. i've found scripts that let me drop items in specific places. i even figured out how to get a new window opened when the element is dropped in the right place.
but i can't find a script where i can do this with multiple draggable elements, each with its own drop partner (eg, divA can only be dropped in divB otherwise it returns to its original spot; divC can only be dropped in divD otherwise it returns... and so on).
the closest thing i found was this: http://developer.yahoo.com/yui/examples/dragdrop/dd-circle.html
any help would be appreciated!
i'm searching for a script that allows me to drag elements around the screen (like an image, div, etc.). i want the element to return to its original position if it is not dropped in the correct place (let's say another div). if it is dropped in the correct place, something happens (like a new window opening).
so far, i've found scripts that let me drag items. i've found scripts that let me drop items in specific places. i even figured out how to get a new window opened when the element is dropped in the right place.
but i can't find a script where i can do this with multiple draggable elements, each with its own drop partner (eg, divA can only be dropped in divB otherwise it returns to its original spot; divC can only be dropped in divD otherwise it returns... and so on).
the closest thing i found was this: http://developer.yahoo.com/yui/examples/dragdrop/dd-circle.html
any help would be appreciated!