묻고답하기

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 남기남
고달픈생활 갑자기 메뉴 이동시 페이지 나가기 여부; [1] file 2012.12.01 by 송동우
어렵다용 특정게시판만 회원정보창 안뜨게 하는법 소스 어디에 넣어요 [1] 2012.12.01 by 송동우
iganda7 아이디/비밀번호 찾기 페이지 한글 깨짐 [1] file 2012.12.01 by 송동우
dnflsmsc ㅠㅠ도와주세요ㅠ게시판관리설정ㅜ  
뮤  파일 다운로드 및 쉬운 설치가 안됩니다.  
다크블루 제로보드4 게시물 스팸성 덧글 삭제 방법 문의 [1] 2012.11.30 by 다조아해
샤이링547 기입한 메일주소 변경관련 질문입니다. [2] 2012.11.30 by 송동우
어렵다용 크롬에서 주소에 www.붙일때랑 아닐때랑 레이아웃이 다르게 보여요. [1] 2012.11.30 by 송동우
어렵다용 특정게시판에서만 회원정보보기창 안뜨게 하는 법 [1] 2012.11.30 by 송동우
어렵다용 게시판에 글목록수 설정하는 방법 [2] 2012.11.30 by 송동우
닥터피아 스핑크스 검색 모듈 문의  
띵똥 제가 제대로 설치했는지 모르겠어요 [1] 2012.11.30 by 송동우
어렵다용 익게 회원정보보기 질문 다시요.... [1] 2012.11.30 by 송동우
나잔보자 xe는 아닌데...이미지롤링  
RUNFS 경매 게시물에서 남은 기간도 출력가능할까요? [1] file 2012.11.30 by 푸시아
삼토리 위지윅에디터 글쓰기, 글수정시 에디터상태 비활성화문제.. [1] file 2012.11.30 by 푸시아
똑디 XE 설치에 맞는 PHP버전 Mysql 버전 추천 부탁드립니다. [1] 2012.11.30 by 푸시아
온달왕자 네비게이터 위젯 하위 펼쳐있기고정 및 글수 출력 문의 [1] file 2012.11.30 by KANTSOFT
어렵다용 익게에 회원정보보기창 안보이게 하기 재질문 [1] 2012.11.30 by 송동우
어렵다용 익명게시판 데이터 이전글 회원정보 팝업창 안보이게 하기 [1] 2012.11.30 by 송동우