후리자의 코드..

ㅋㅋ

고맙다.

function swapElement(oSrc, oDst) {
    var oSrcBase = {
        'parent' : oSrc.parentNode,
        'sibling' : oSrc.nextSibling
    };

    oDst.parentNode.insertBefore(oSrc, oDst);
    oSrcBase.parent.insertBefore(oDst, oSrcBase.sibling);
}


이걸로 테이블 요소를 뒤집는데 사용했다.


나도 질 수 없어서
function seachSelectedElement(array, idIndex){
    for( i = 0 ; i < array.length ; i++){
        if(array[i].id == idIndex){
            return i;
        }
    }    
}  
selectedIndex = seachSelectedElement(tagBody,idIndex);

이걸로 마무리

크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by 허혁

댓글을 달아주세요:: 네티켓은 기본, 스팸은 사절

◀ PREV : [1] : ... [32] : [33] : [34] : [35] : [36] : [37] : [38] : [39] : [40] : ... [88] : NEXT ▶

BLOG main image
안녕하세요. 안정된 코딩, 여유로운 프로젝트, 떠오르는 코더 by 허혁

카테고리

분류 전체보기 (88)
direct (50)
indirect (21)
transmissive (10)
agenda (4)
idea (3)

달력

«   2008/07   »
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

최근에 달린 레몬펜 쪽지

Statistics Graph
Creative Commons License

이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-동일조건변경허락 2.0 대한민국 라이선스에 따라 이용하실 수 있습니다.