I would like to modify the code so it will display atleast 10 icons开发者_如何学JAVA when the page loads. how could I do this on addThis? Thanks
HTML:
<div class="addthis_toolbox addthis_default_style "></div>
jQuery:
var totalButtons = 10;
for(var i=1;i<=totalButtons;i++){
$('.addthis_toolbox').append('<a class="addthis_button_preferred_'+i+'"></a>');
}
Please post any code you are currently using for your AddThis widget.
精彩评论