Customize Buttons

Multiple Buttons - Share Specific Page

Use the following code as a template for configuring multiple buttons to share one specific link.

<a class="a2a_dd" href="http://www.addtoany.com/share_save">Share This</a>

<script type="text/javascript">
a2a_config = {
    linkname: 'Example Page',
    linkurl: 'http://www.example.com/page.html'
};
</script>

<script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

...

<a class="a2a_dd" href="http://www.addtoany.com/share_save">Share This</a>

<script type="text/javascript">
a2a.init('page');
</script>

Tip: As seen above, the external script (http://static.addtoany.com/menu/page.js) initiates an AddToAny menu on the preceding a2a_dd class name. After the external script has been defined, calling a2a.init('page') for subsequent buttons will also initiate a menu. Either method can be used, but using a2a.init('page') instead of another external script reference can save extra HTTP requests.

Share This ... Share This