Test wsurveyMoveBox: setupMoveBox
d1 1
d1 2
d2 1
Move other box!
d1 3
for creating a moveable/resizeable DIV (or other container)
4) In an function (say, that is called by onLoad) initialize the moveable box using the setupMoveBox function.
setupMoveBox should be called with the ID of the moveable box, the move button and resize button (created in step 2 and 3 above).
Example:
If "moveme" is the id of the moveable box,
"moveButton" the id of the button to be used for moving the box, and
"resizeButton" the id of the button used to resize the box
then include the following in a onLoad (or a document.ready(...))
setupMoveBox('moveme','movebutton','resizebutton');
Moving and resizing are done by clicking on the appropriate button, holding the button down, and moving it.
a moveable box. This will add .data to the element (the box) with an id of aid
of the box to be moved
e id of the "move button". This is typically in the box to be moved, but can be anywhere
e id of the "resize button". This is typically in the box to be moved, but can be anywhere
omment to add to the data object (possibly useful for debugging)
',1) ; // abort on error
seX:0,_firstMouseY:0,_nowMouseX:0,_nowMouseY:0,_startingAtX:0,_startingAtY:0,
rtingAtW:0,_startingAtH:0,
stRMouseX:0,_firstRMouseY:0,_nowRMouseX:0,_nowRMouseY:0,_startingRAtX:0,_startingRAtY:0} ;
comment ;
',dd);
position');
pperCase()=='STATIC') z.css('position','relati