Displaying 1 result from an estimated 1 matches for "kimballben".
2010 May 03
0
Scriptaculous, snap draggable to droppable or revert
...been unsuccessful with this
issue. I understand there''s the Snap option but I want it to snap INTO a
droppable when close or go back to its original position.
I have found some example code such as:
<script type="text/javascript">
//<![CDATA[
new Draggable(''kimballben'', {
revert: true,
});
document.getElementsByClassName (''dropbox'').each ( function (e) {
Droppables.add(e, {
hoverclass: ''over'',
onDrop: function (drag, drop) {
drag.revert = false;
drop.appendChild(drag);...