| Overview | Index | GodLikeMouse JavaScript Framework |
| FRAMES | NO FRAMES |
GLM.DOM.DragAndDrop.setDragOffset( x, y )
Method for setting the drag offset. This is the offset from the actual drag location to place the dragged element.
Parameters:
x - The x offset
y - The y offset
Example:
var dnd = new DragAndDrop();
function OnBeginDrag(source){
alert("source element is: " + source.tagName);
}//end OnBeginDrag()
function OnDrag(source, dest){
if(dest)
alert("drop target: " + dest.tagName);
}//end OnDrag()
function OnDrop(source, dest){
alert("source is: " + source.tagName);
alert("dest is: " + dest.tagName);
}//end OnDrop()
dnd.setBeginDragCallback(OnBeginDrag);
dnd.setDragCallback(OnDrag);
dnd.setDropCallback(OnDrop);
dnd.setDragOffset(10,10);
| Overview | Index | GodLikeMouse JavaScript Framework |
| FRAMES | NO FRAMES |