0
jQuery를 사용하여 페이지의 특정 영역에 Addthis 위젯을 동적으로 추가하려고합니다. 다음 코드는 IE에서 보이지 않는 경우를 제외하고는 정상적으로 작동합니다.동적으로 페이지의 특정 부분에 addthis를 jQuery로 추가합니다.
jQuery(function(){
if (typeof global_Current_ProductCode != 'undefined'){
jQuery.getScript('http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-xxxxxxxxxxx',function(){
var add_this_html ='<div class="addthis_toolbox addthis_default_style " style="margin-top:20px">';
add_this_html += '<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>';
add_this_html += '<a class="addthis_button_tweet"></a>';
add_this_html += '<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>';
add_this_html += '</div>';
jQuery('.text.colors_text:eq(0)').closest('table').before(add_this_html);
addthis.init();
});
}
});
이것은 내가 방화범 라이트와 함께 IE에서 보는 전부입니다.
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"/>
<a class="addthis_button_tweet"/>
<a class="addthis_button_google_plusone" g:plusone:size="medium"/>
</div>
누구나 IE에 표시되지 않는 이유는 무엇입니까?
노력을 주셔서 감사합니다,하지만 불행히도 나는 그것이 :(+1 버튼을 제거하고 여전히 IE에서 작동하지 않았다 시도 사용할 때 – user357034