묻고답하기

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