묻고답하기

http://etreecell.com

 

3일간 아무리 구글링이던 뭘 해도 이 문제가 해결되지 않네요. ㅠ


위 사이트를 들어가시면 유동적으로 DIV를 생성합니다.
여러개 생성된 DIV를 드래그로 여러개 선택해서
같이 움직이려고 합니다.

파이어폭스나 크롬, 오페라에서는 구현이 되는데,
IE에서만 구현이 안됩니다. ㅠㅜ

유동적으로 오브젝트를 생성하면 DOM갱신이 안되어
$('').live를 사용했는데,
힘드네요. ㅠㅜ

부탁드립니다.
어디가 잘못된건가요?;;

아래는 스크립트 소스입니다.
<script type="text/javascript">
$(document).ready(function(){
 
    var counter = 1;
 
    var newCellDiv = $(document.createElement('div'))
        .attr("id", 'Cell_' + counter);
         newCellDiv.addClass('drag');
                  newCellDiv.css({
                top: Math.floor((Math.random() * ( $(" #container" ).height() - 160 ) + 160)/10)*10,
                left: Math.floor((Math.random() * ( $( "#container" ).width() - 200 ) + 40 )/10)*10
            });
    newCellDiv.html('<input class="cell_text_class" type="text" name="Cell_txt_' + counter + '" id="Cell_txt_' + counter + '" value="'+newCellDiv.attr("id")+'" >');
 
    newCellDiv.appendTo("#container");
    
    $("#container div").removeClass("ui-selected");newCellDiv.addClass("ui-selected");document.getElementById("Cell_txt_" + counter).focus();

 
 
    counter++;
    var newCellDiv = $(document.createElement('div'))
        .attr("id", 'Cell_' + counter);
         newCellDiv.addClass('drag');
                  newCellDiv.css({
                top: Math.floor((Math.random() * ( $(" #container" ).height() - 160 ) + 160)/10)*10,
                left: Math.floor((Math.random() * ( $( "#container" ).width() - 200 ) + 40 )/10)*10
            });
    newCellDiv.html('<input class="cell_text_class" type="text" name="Cell_txt_' + counter + '" id="Cell_txt_' + counter + '" value="'+newCellDiv.attr("id")+'" >');
 
    newCellDiv.appendTo("#container");
    
    $("#container div").removeClass("ui-selected");newCellDiv.addClass("ui-selected");document.getElementById("Cell_txt_" + counter).focus();

 
 
    counter++;
    $("#addButton").click(function () {

    var newCellDiv = $(document.createElement('div'))
        .attr("id", 'Cell_' + counter);
         newCellDiv.addClass('drag');
                  newCellDiv.css({
                top: Math.floor((Math.random() * ( $(" #container" ).height() - 160 ) + 160)/10)*10,
                left: Math.floor((Math.random() * ( $( "#container" ).width() - 200 ) + 40 )/10)*10
            });
    newCellDiv.html('<input class="cell_text_class" type="text" name="Cell_txt_' + counter + '" id="Cell_txt_' + counter + '" value="'+newCellDiv.attr("id")+'" >');
 
    newCellDiv.appendTo("#container");
    
    $("#container div").removeClass("ui-selected");newCellDiv.addClass("ui-selected");document.getElementById("Cell_txt_" + counter).focus();

 
 
    counter++;

    });
$("#container").selectable({ disabled: false });
        $("#container").selectable({  });
    $("#container div").live('mouseover', function(){$(this).draggable({grid : [10,10],opacity: 0.5, containment: "#container", scroll: false,
            
            start: function(ev, ui) {
                
                $("#container").selectable({ disabled: true });
                //document.getElementById("tn").value = ui.position.top;
                //document.getElementById("ln").value = $(this).offset().left;
            //    offset = $(this).offset();
            },
            drag: function(ev, ui) {
                $(this).is(".ui-selected") || $(".ui-selected").removeClass("ui-selected");
                var dt = ui.position.top - $(this).offset().top, dl = ui.position.left - $(this).offset().left;
                
                $(".ui-selected").each( function() {
                    $(this).css({top: $(this).offset().top + dt, left: $(this).offset().left + dl});
                    
                });
},
            stop: function() {$("#container").selectable({ disabled: false });
            $(this).addClass("ui-selected");
            a1 = $(".ui-selected").attr("id");
            b1 = $("#" +a1 +" .cell_text_class").attr("id");
            document.getElementById(b1).focus();
            //alert(a1);
            //alert(b1 );
                            }
        });});
    </script>

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
풰헤헤헤 게시판 상단내용 삽입관련 질문입니다. file  
제로어렵 게시판페이지에 외부로긴 정보공유는 어떻게?  
레시테 1.2.2 업뎃 후 레이아웃 배경이미지가 출력되지 않습니다. [4] 2009.05.13 by 레시테
늘같이 확장변수 정렬 방법 좀..  
버섯도리 페이지 수정을 클릭하면 메인페이지로 넘어갑니다..  
NARZ 메뉴출력 위젯에서 메뉴를 그림파일로 올려둔것 제대로 나오게 하려면??  
오타왕자 페이지수정 페이지 에러요....ㅠㅠ file  
오늘도 하단 검색에서 원하는 옵션만 추출할때 한글이 깨져서 나와요 [9] 2009.05.13 by 오늘도
김종완359 질문...xe에서 레이아웃은 홈과 게시판에 모두 적용해야 하나?  
김공주님 관리자만 조회수 볼 수 있게 어떻게 하죠? ㅠ.ㅠ [3] 2009.05.13 by 트렌드
때린데 또때려 게시글 크릭시 댓글맨 아래로 이동하는데 ??  
천천히라이딩 비회원 상담기능 작동하는 방법좀 알려 주세요.. [2] 2009.05.13 by 때린데 또때려
오늘도 플래닛 스킨이 수정이 안돼서요(이미지첨부) file  
gguyy 내용직접추가 오류입니다.... 도움부탁드립니다 ㅠㅠ [5] file 2009.05.13 by gguyy
김정훈닷컴 게시판 로그인창에 비밀번호가 안나타납니다 (이미지첨부) [2] file 2009.05.13 by 김정훈닷컴
에고 페이지 수정할려니 소스가 다 사라지고 없고,. 또 다른 문제가  
안준석758 제로보드 웹진스킨 글자 상하간격 file  
뮤랑이 해커다님의 레이아웃을 2단으로 서브메뉴 없이 사용하고 싶습니다. [3] 2009.05.13 by 뮤랑이
신비의불 1.2.0 업데이트 이후 회원포인트 적용안됨 [1] 2009.05.13 by artlab
Badboy <address> </address> 는 뭔지.. [1] 2009.05.13 by 비나무