2013-12-15 7 views
2

사진 갤러리의 기본 HTML 사이트에서 작업 중이며 AddThis 단추를 추가하고 싶지만 표시되지 않습니다.단추 추가

<!-- AddThis Button BEGIN --> 
<div class="addthis_toolbox addthis_default_style "> 
    <a class="addthis_button_preferred_1"></a> 
    <a class="addthis_button_preferred_2"></a> 
    <a class="addthis_button_preferred_3"></a> 
    <a class="addthis_button_preferred_4"></a> 
    <a class="addthis_button_compact"></a> 
    <a class="addthis_counter addthis_bubble_style"></a> 
</div> 
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script> 
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-52adbb04690060bb"></script> 
<!-- AddThis Button END --> 

을하지만 아무것도 웹 페이지에 나타 없습니다 :

이 코드를 사용하고 있습니다. 때때로 버튼 대신 텍스트 링크가 있습니다. 사이트에서 제안하는 문제 해결 단계를 시도했지만 도움이되지 않습니다.

AddThis Troubleshooting

AddThis Debugging

는 사람이 잘못 알고 있나요?

+0

내가 복사 jsfiddle에 코드를 붙여 그것은 나를 위해 일했습니다. – itsmikem

+0

그건 대단한거야. 시도해 줘서 고마워. – Eightytwo

답변

1

나는 동일한 문제가있었습니다. file:///home/emmanuel/html/new.html에있는 파일 시스템에서 html 파일을 직접보고 있었고 웹 서버를 통해서는 보지 못했습니다. html 파일을 아파치 서버 디렉토리 (우분투의/var/www)에두고 http://127.0.0.1/new.html에서 보는 것은 나를 위해이 문제를 해결했습니다. 희망이 도움이됩니다.

new.html

<!DOCTYPE html> 
<!--[if lt IE 7]>  <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> 
<!--[if IE 7]>   <html class="no-js lt-ie9 lt-ie8"> <![endif]--> 
<!--[if IE 8]>   <html class="no-js lt-ie9"> <![endif]--> 
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> 
    <head> 
     <meta charset="utf-8"> 
     <meta http-equiv="X-UA-Compatible" content="IE=edge"> 
     <title></title> 
     <meta name="description" content=""> 
     <meta name="viewport" content="width=device-width, initial-scale=1"> 

    <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> 

    <link rel="stylesheet" href="css/normalize.css"> 
    <link rel="stylesheet" href="css/main.css"> 
    <script src="js/vendor/modernizr-2.6.2.min.js"></script> 
</head> 
<body> 
    <!--[if lt IE 7]> 
     <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> 
    <![endif]--> 

    <!-- Add your site or application content here --> 
    <!-- AddThis Button BEGIN --> 
    <div class="addthis_toolbox addthis_default_style "> 
    <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> 
    <a class="addthis_button_tweet"></a> 
    <a class="addthis_button_pinterest_pinit" pi:pinit:layout="horizontal"></a> 
    <a class="addthis_counter addthis_pill_style"></a> 
    </div> 
    <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script> 
    <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-52b7262c326d06b2"></script> 
    <!-- AddThis Button END --> 

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> 
    <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.10.2.min.js"><\/script>')</script> 
    <script src="js/plugins.js"></script> 
    <script src="js/main.js"></script> 

    <!-- Google Analytics: change UA-XXXXX-X to be your site's ID. --> 
    <script> 
     (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]= 
     function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date; 
     e=o.createElement(i);r=o.getElementsByTagName(i)[0]; 
     e.src='//www.google-analytics.com/analytics.js'; 
     r.parentNode.insertBefore(e,r)}(window,document,'script','ga')); 
     ga('create','UA-XXXXX-X');ga('send','pageview'); 
    </script> 
</body>