title: Drupal 7 and Addthis
body: <p>So I need to use addthis. Please visit my page which I am trying to implement add this. </p>
  
  <p><a href="http://www.iamvishal.com/dev/node/13" rel="nofollow">http://www.iamvishal.com/dev/node/13</a></p>
  
  <p>The add this buttons won't show up on my page. I am able to implement it using plain html code but the drupal implementation is not working. </p>
  
  <p>The js is getting loaded but I am unable to debug the problem as I am unable to find the problem why this is happening. </p>
  
  <p>cheers,
  Vishal</p>
  
  <p>p.s - for more on addthis pls visit <a href="http://www.addthis.com/" rel="nofollow">http://www.addthis.com/</a></p>
  
  <p>code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  (function ($) {
      Drupal.behaviors.slider = {
          attach:function(context) {
              var script = 'http://s7.addthis.com/js/250/addthis_widget.js#domready=1';
              if (window.addthis) {
                  window.addthis = null;
              }
              $.getScript(script);
          }
  
      };
  
  }(jQuery));
  &lt;/script&gt;
  
  
  
  &lt;div id="sociallinks"&gt;
  &lt;div class="viewing"&gt;Request a viewing&lt;/div&gt;
  
  
  &lt;!-- AddThis Button BEGIN --&gt;
  &lt;div class="addthis_toolbox addthis_default_style addthis_32x32_style"&gt;
  &lt;a class="addthis_button_preferred_1"&gt;&lt;/a&gt;
  &lt;a class="addthis_button_preferred_2"&gt;&lt;/a&gt;
  &lt;a class="addthis_button_preferred_3"&gt;&lt;/a&gt;
  &lt;a class="addthis_button_preferred_4"&gt;&lt;/a&gt;
  &lt;a class="addthis_button_compact"&gt;&lt;/a&gt;
  &lt;a class="addthis_counter addthis_bubble_style"&gt;&lt;/a&gt;
  &lt;/div&gt;
  
  &lt;!-- AddThis Button END --&gt;
  &lt;/div&gt;&lt;!-- end of social links --&gt;
  </code></pre>