Add to Any

Add to Any Widgets API

Customize your Share/Save and Subscribe widgets

JavaScript variable Default value Description & Example
a2a_linkname document.title Name of the item to be shared/saved. a2a_linkname="Example web page!";
a2a_linkurl location.href URL of the item to be shared/saved. a2a_linkurl="http://www.example.com/page.html";
a2a_onclick 0 Have the menu appear when the user clicks the button instead of when the user hovers over the button. a2a_onclick=1;
a2a_show_title 0 Show the title of the item to be shared/save within the menu (from a2a_linkname). a2a_show_title=1;
a2a_num_services 12 Number of services to be displayed by default within the menu. a2a_num_services=16;
a2a_prioritize N/A Specify the services you want to prioritize, ordered from highest priority to lowest priority.
This is an array, so you can add as many services as you desire.
Service names are case sensitive and spaces should be replaced with underscores.a2a_prioritize=[
"facebook",
"windows_live_favorites",
"yigg"
];
a2a_custom_services N/A Add custom service(s) to the menu. This is an array, so you can add as many services as you desire. The icon URL is optional. a2a_custom_services=[
["Example dot com","http://www.example.com/add?name=A2A_LINKNAME_ENC&url=A2A_LINKURL_ENC"
"http://www.example.com/images/icon_16x16.png"],
["Example dot net","http://www.example.net/add?name=A2A_LINKNAME_ENC&url=A2A_LINKURL_ENC"
"http://www.example.net/images/icon_16x16.png"],
["Example dot org","http://www.example.org/add?name=A2A_LINKNAME_ENC&url=A2A_LINKURL_ENC"
"http://www.example.org/images/icon_16x16.png"]
];
a2a_hide_embeds 1 Hide intersecting objects (like Flash) when the menu is displayed. a2a_hide_embeds=0;
a2a_orientation Automatic Specify the vertical orientation of the menu. Only supports down at the moment. a2a_orientation="down";
a2a_email_feed_url Official feed e-mailer For the Subscribe widget, specify the URI scheme of another feed e-mailer. Use A2A_LINKURL_ENC in place of your feed URL, if required. a2a_email_feed_url="http://www.example.com/feed_emailer?feed_url=A2A_LINKURL_ENC";

Note that many of these options are available in the button generator by clicking on More Options.

For color customization, also see the button generator and click More Options > Menu Colors.

Feel free to customize the CSS in your stylesheet. We do our best to keep class and id names consistent with every release.

HomeGet the buttonsFAQSponsorBlogContactTwitter
© 2006 - 2008 MicroPat Privacy Policy