0

ボックスのサイズを変更するハンドラーがいくつかあります。選択したハンドルに従ってボックスを移動したいと思います。ループ内でこれを実装するための最良の方法は何でしょうか

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;
    };
}
4

1 に答える 1

0

簡単な答えはありませんが、Flex ではRogue Development のオブジェクト ハンドルを使用して幸運に恵まれました。

于 2009-02-03T23:01:31.743 に答える