2010-04-08 5 views
-1

나는 이것을 만들려고 노력하고있다. 나의 wordpress는 잘 작동 하나, wordpress에 통합하자마자 나는 툴팁을 볼 수 없다. 제가 일하고 싶은 페이지는 hereJqueryTools 충돌

입니다. 제가 약간의 실험을했습니다. 이것은 test version이며 이것은 wordpress version입니다. 테스트 버전은 코드를 저장하여 소스를 모두 저장하고 업로드 한 후 툴팁이 작동합니다. 그러나 워드 프레스 버전은 작동하지 않습니다 .. 지금은 모두 동일하지만 하나는 작동하고 다른 하나는 작동하지 않습니다. 여기

JQuery와 코드이다

헤더

<script src="http://cdn.jquerytools.org/1.1.2/full/jquery.tools.min.js" type="text/javascript"/></script> 
<script type="text/javascript"> 
var $ = jQuery.noConflict(); 
</script> 

<script> 
// What is $(document).ready ? See: http://flowplayer.org/tools/using.html#document_ready 

$(document).ready(function() { 

    // enable tooltip for "download" element. use the "slide" effect 
    $("#download_now").tooltip({ effect: 'slide'}); 
}); 
</script> 

이것은 워드 프레스 (이 도면 원 내지)를 생성 무엇

<script src="http://cdn.jquerytools.org/1.1.2/full/jquery.tools.min.js" type="text/javascript"/></script> 
    <script type='text/javascript' src='http://www.testground.idghosting.com/philcom/wp-includes/js/jquery/jquery.js?ver=1.3.2'></script> 
<script type="text/javascript"> 
var $ = jQuery.noConflict(); 
</script> 

    <script type='text/javascript'> 
      $j=jQuery.noConflict(); 


      $j(document).ready(function() { 
       initCalendar(); 
      }); 

      function initCalendar() { 
       $j('a.prev-month').click(function(e){ 
        e.preventDefault(); 
        tableDiv = $j(this).parents('table').parent(); 
        ($j(this).hasClass('full-link')) ? fullcalendar = 1 : fullcalendar = 0; 
        prevMonthCalendar(tableDiv, fullcalendar); 
       }); 
       $j('a.next-month').click(function(e){ 
        e.preventDefault(); 
        tableDiv = $j(this).parents('table').parent(); 
        ($j(this).hasClass('full-link')) ? fullcalendar = 1 : fullcalendar = 0;  
        nextMonthCalendar(tableDiv, fullcalendar); 
       }); 
      }  
      function prevMonthCalendar(tableDiv, fullcalendar) { 
       if (fullcalendar === undefined) { 
        fullcalendar = 0; 
        } 
       month_n = tableDiv.children('div.month_n').html();         
       year_n = tableDiv.children('div.year_n').html(); 
       parseInt(month_n) == 1 ? prevMonth = 12 : prevMonth = parseInt(month_n,10) - 1 ; 
       if (parseInt(month_n,10) == 1) 
         year_n = parseInt(year_n,10) -1; 
       $j.get("http://www.testground.idghosting.com/philcom", {ajaxCalendar: 'true', calmonth: prevMonth, calyear: year_n, full: fullcalendar}, function(data){ 
        tableDiv.html(data); 
        initCalendar(); 
       }); 
      } 
      function nextMonthCalendar(tableDiv, fullcalendar) { 
       if (fullcalendar === undefined) { 
        fullcalendar = 0; 
        } 
       month_n = tableDiv.children('div.month_n').html();         
       year_n = tableDiv.children('div.year_n').html(); 
       parseInt(month_n,10) == 12 ? nextMonth = 1 : nextMonth = parseInt(month_n,10) + 1 ; 
       if (parseInt(month_n,10) == 12) 
         year_n = parseInt(year_n,10) + 1; 
       $j.get("http://www.testground.idghosting.com/philcom", {ajaxCalendar: 'true', calmonth: nextMonth, calyear: year_n, full : fullcalendar}, function(data){ 
        tableDiv.html(data); 
        initCalendar(); 
       }); 
      } 

      // function reloadCalendar(e) { 
      // // e.preventDefault(); 
      //  console.log($j(this).parents('table')); 
      //  $j.get("http://www.testground.idghosting.com/philcom", {ajax: 'true'}, function(data){ 
      //  tableDiv = table.parent(); 
      //  tableDiv.html(data); 
      //    }); 
      // } 
      //      

     </script> 

답변

0

난 단지 HTML 편집기를 사용하고 난 내 자신의 <p> 태그와 <br /> 쓰기 등 ... 내가 실행 해요 문제는 때마다 나는 '사용자 정의 스타일과 특별한 <span>을 사용하는 것입니다 WP는 단락 뒤에 <br />뿐만 아니라 그 범위 주위에 <p>을 추가합니다.

는 이제 솔루션은 포맷하기 내가있는 것을 넣을까요 downloading this plugin

0

$ j 대신 $을 사용하고 있다고 생각하십니까?

<script> 
// What is $(document).ready ? See: http://flowplayer.org/tools/using.html#document_ready 

$(document).ready(function() { 
// enable tooltip for "download" element. use the "slide" effect 
$("#download_now").tooltip({ effect: 'slide'}); 
}); 
</script> 
+0

에 의해 워드 프레스 편집기에서 비활성화하는 것입니다? 이것은 $ j = jQuery.noConflict()와 다소 다릅니다. –

+0

$$ (이)가 아직 나타나지 않습니다. –

+0

$ j ("# download_now"). 툴팁 ({효과 : '슬라이드'}); $ ("# download_now")이어야합니다. 툴팁 ({effect : 'slide'}); –