ボックスのサイズを変更するハンドラーがいくつかあります。選択したハンドルに従ってボックスを移動したいと思います。ループ内でこれを実装するための最良の方法は何でしょうか
for (var j = 0; j < allhand.length; j++) {
aaa[allhand[j]].style.visibility = 'inherit';
aaa[allhand[j]].onmousedown = function(e) {
document.onmousemove = function(e) {
// if bottom handle it's been moved then just inc height
// if right handle it's been moved then just inc width... ?????
// etc...
return false;
};
document.onmouseup = function(e) {
stop = false;
return false;
};
return false;
};
}