묻고답하기

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 남기남
nzeo초보 게시판 검색창,쓰기,댓글에서 영어에서 한글로 변환이 안되네요 [1] 2010.11.12 by ForHanbi
우째우째 xe core 설치했는데 메인페이지가 안나와요 ㅠㅠ [1] file 2010.11.12 by SeklutZ
바다가소주라면 페이지직접수정 이미지에 파일명이 뜨는것에대해 질문좀 드립니다  
우이택 파일첨부 않됨 [1] 2010.11.12
대학생사람연대 코어업데이트가 잘못된듯.!  
S4시티 메인배너가 대문짝만한 레이아웃 스킨을 찾고있습니다! [1] 2010.11.12 by 하늘종
이메쓰 사이트는 안뜨고 admin 페이지는 뜨는 경우  
neila write 페이지에서 글쓰는 칸이 작아졌어요! file  
웨버킴 게시판 스킨설정에 간단글쓰기 체크가 없어요.. -_-; [1] 2010.11.11 by SeklutZ
GiLee™ 모듈 선택기에서 모듈추가 되지않는 현상입니다..  
달빛영혼 기본 setting 화면이 갱신이 안되네요..ㅡㅡ;; [1] 2010.11.11 by Gekkou
Xpress Editor 에서 첨부파일을 구형방식으로...  
축복의 통로 새창에서 보여지고 또 배경원창에서도 새창과 동일한 내용으로 열립니다.  
aflatoxin 특정 게시판 본문에 등록일,조회수 등을 제거할 수는 없을까요? [2] file 2010.11.11 by RainDrop+
달빛영혼 XE경로를 바꾸고 싶은데.. 이름만 바꿔도 될까요? [1] 2010.11.11 by Gekkou
_writer 익명게시판 아이디노출 문제 테스트해주실분을 찾습니다. [3] 2010.11.11 by eruko
최상순480 rss설정후 아이폰에서 푸쉬(닫힌상태에서 새글등록알리는기능)되는 어플설정 어떻게 해야하는짖좀?  
달빛영혼 홈페이지 하단에 자꾸 오류 표시가 뜹니다.. ㅠㅠ [1] 2010.11.11
뺑두비쌈2 파일업로드시 404에러 [1] file 2010.11.11 by
김서원 본문 삽입 배너를 제거할려고 하는데.... file