2024年6月13日发(作者:)

= Height;

= Left;

= Top;

Value = false;

Bubble = true;

}

function doUp() {

if (theobject != null) {

theobject = null;

}

}

function doMove() {

var el, xPos, yPos, str, xMin, yMin;

xMin = 8; //The smallest width possible

yMin = 8; // height

el = getReal(ment, "className", "resizeMe");

if (ame == "resizeMe") {

str = getDirection(el);

//Fix the cursor

if (str == "") str = "default";

else str += "-resize";

= str;

}

//Dragging starts here

if(theobject != null) {

if (f("e") != -1)

= (xMin, + X - ) + "px";

if (f("s") != -1)

= (yMin, + Y - ) + "px";

if (f("w") != -1) {

= ( + X - , + -

xMin) + "px";

= (xMin, - X + ) + "px";

}

if (f("n") != -1) {

= ( + Y - , + -

yMin) + "px";

= (yMin, - Y + ) + "px";

}

Value = false;

Bubble = true;

}

}

function getReal(el, type, value) {

temp = el;

while ((temp != null) && (e != "BODY")) {

if (eval("temp." + type) == value) {

el = temp;

return el;

}

temp = Element;

}

return el;

}

edown = doDown;

eup = doUp;

emove = doMove;