How do I configure AddThis onClick rather than onMouseover?

explore-toshiba Jun 25, 2012 04:05PM EDT

I recently found some code to allow me to do this, however the issue is also being able to display the counter. It seems that if you put a custom image inside the <a>, the addthis_counter class will no longer work.

Here is the HTML that I found. Also, am I supposed to replace [URL] and [TITLE] with a literal value? I'm hoping the API takes care of populating these values.

<a href="http://www.addthis.com/bookmark.php?v=250&pub=testaccount" class="addthis addthis_counter addthis_pill_style" onclick="return addthis_open(this, '', '[URL]', '[TITLE]'); return addthis_sendto()"><img src="http://s7.addthis.com/static/t00/logo1414.gif" style="border:none" />
</a>

1 Community Answers

Paul Jun 26, 2012 12:07PM EDT

That's correct. Putting anything inside the button will override the counter. If you want the counter you can add this code to your page:

<a class="addthis_counter addthis_bubble_style"></a>


This question is closed to new answers.

Still need help?


General Topics

 

Developers