javascript - addthis.toolbox() method: buttons cut off and alt text displaying -


as i'm doing jquery html replacement on responsive design, suggested use addthis.toolbox method instead of init method addthis.

even though code specifying 32x32 pixel buttons they're getting displayed bottom half of graphic cut off , alt text displaying. here's code:

<div id="zazoo" class="addthis_toolbox addthis_default_style addthis_32x32_style"> <a class="addthis_button_facebook_follow" addthis:userid="example"></a> <a class="addthis_button_twitter_follow" addthis:userid="example"></a> <a class="addthis_button_google_follow" addthis:userid="xx"></a> <a class="addthis_button_youtube_follow" addthis:userid="example"></a> </div>  <script src="//s7.addthis.com/js/300/addthis_widget.js#pubid=example&async=1"> </script> <script type="text/javascript"> addthis.toolbox("#zazoo");  </script> 

i made stripped down version that's code , still see issue cut off buttons. addthis users out there...can see problem code or system issue on addthis' end? can't see issue code itself, way it's getting displayed.

the addthis.toolbox() method works after you've called addthis.init() method if you're using async flag. change code this:

<div id="zazoo" class="addthis_toolbox addthis_default_style addthis_32x32_style">     <a class="addthis_button_facebook_follow" addthis:userid="digitalhit"></a>      <a class="addthis_button_twitter_follow" addthis:userid="digitalhit"></a>      <a class="addthis_button_google_follow" addthis:userid="108569913685983365364"></a>      <a class="addthis_button_youtube_follow" addthis:userid="digitalhit"></a>     <a class="addthis_button_rss_follow" addthis:userid="http://feeds.feedburner.com/digitalhitentertainmentnews"></a> </div> <script src="//s7.addthis.com/js/300/addthis_widget.js#pubid=dheian&async=1"></script> <script type="text/javascript"> <!-- addthis.init(); // --> </script> 

the addthis.toolbox() method used render buttons after first initialization.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -