행

캡챠이미지와의 충돌은 어떻게 처리하시나요 ?

메인에 메뉴 하나 올리는 스크립트가 게시판의 쓰기, 게시물 보기 덧글 달기 부분의 캡챠이미지와 충돌합니다.

제가 올리고자 하는 소스

<script type="text/javascript">
$(function() {
    /**
    * for each menu element, on mouseenter,
    * we enlarge the image, and show both sdt_active span and
    * sdt_wrap span. If the element has a sub menu (sdt_box),
    * then we slide it - if the element is the last one in the menu
    * we slide it to the left, otherwise to the right
    */
$('#sdt_menu > li').bind('mouseenter',function(){
     var $elem = $(this);
     $elem.find('img')
       .stop(true)
       .animate({
       'width':'170px',
       'height':'170px',
       'left':'0px'
       },400,'easeOutBack')
       .andSelf()
       .find('.sdt_wrap')
          .stop(true)
       .animate({'top':'100px'},500,'easeOutBack')
       .andSelf()
       .find('.sdt_active')
          .stop(true)
       .animate({'height':'60px'},300,function(){
      var $sub_menu = $elem.find('.sdt_box');
      if($sub_menu.length){
       var left = '170px';
       if($elem.parent().children().length == $elem.index()+1)
        left = '-170px';
       $sub_menu.show().animate({'left':left},200);
      } 
     });
    }).bind('mouseleave',function(){
     var $elem = $(this);
     var $sub_menu = $elem.find('.sdt_box');
     if($sub_menu.length)
      $sub_menu.hide().css('left','0px');
     
     $elem.find('.sdt_active')
       .stop(true)
       .animate({'height':'0px'},300)
       .andSelf().find('img')
       .stop(true)
       .animate({
       'width':'0px',
       'height':'0px',
       'left':'85px'},400)
       .andSelf()
       .find('.sdt_wrap')
       .stop(true)
       .animate({'top':'25px'},500);
    });
            });
/script> 

// 요 부분에서 딱 막히지 말입니다.

$('#sdt_menu > li').bind('mouseenter',function(){

//캡챠 부분만 삭제하면 이쁘게 경고 리본을 달지 않습니다.

혹시 충돌없는 캡챠이미지 생성 소스 없을까요 ?
|

댓글 3개

/script> ==> </script> 변경하옵니다.
제이쿼리로 변경해서 성공은 했는데 말입니다.
다시 읽기하면 텅빈이미지라 꼭 클릭을 해야만 나타나는 현상이 있습니다.

좋긴한데 ... 머라 말하기도 그렇고 아무튼 니가 먼저니 내가 먼저니... 서로 티격태격 싸우지 않으니 기분은 좋습니다.
파폭에서는 아예 얼씬거리지도 않습니다. 꼭꼭 숨어 버리네요.

결국............................................

프로토타입 빼고 아작스로 해결 보았습니다.
제이쿼리와 프로토타입의 충돌이 있다고 합니다.
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
16-07-13 조회 2,160
16-07-12 조회 2,332
16-07-12 조회 2,361
16-07-11 조회 2,185
16-06-05 조회 2,902
16-06-03 조회 3,009
16-05-26 조회 2,928
15-09-22 조회 4,979
15-06-10 조회 4,817
14-10-25 조회 6,349
14-10-22 조회 8,976
14-09-21 조회 5,776
14-09-16 조회 5,061
14-08-22 조회 1.1만
14-08-13 조회 5,895
14-08-12 조회 5,431
14-08-12 조회 6,286
14-08-11 조회 6,919
14-06-12 조회 6,194
14-06-11 조회 5,100
14-05-09 조회 5,412
14-05-09 조회 6,372
14-05-09 조회 6,400
14-05-08 조회 5,736
14-04-17 조회 4,735
14-04-16 조회 4,569
14-04-15 조회 4,572
14-04-15 조회 4,525
14-04-15 조회 4,292
14-04-14 조회 4,279
14-04-14 조회 4,242
14-04-14 조회 4,621
14-04-14 조회 4,764
14-04-14 조회 4,751
14-04-13 조회 4,651
14-04-12 조회 4,214
14-04-12 조회 4,362
14-04-12 조회 4,467
14-04-11 조회 4,999
14-04-10 조회 4,731
14-04-10 조회 4,765
14-04-09 조회 4,928
14-04-09 조회 5,291
14-04-08 조회 6,956
13-10-30 조회 7,650
13-07-11 조회 5,117
13-03-28 조회 1.1만
13-02-27 조회 6,774
13-02-14 조회 5,594
13-01-10 조회 4,508
12-12-31 조회 5,086
12-12-20 조회 6,106
12-12-12 조회 5,264
12-12-07 조회 4,485
12-11-28 조회 4,837
12-11-22 조회 5,271
12-11-12 조회 5,641
12-09-22 조회 4,501
12-09-18 조회 4,696