Kinetic Pulse
  • Home
  • Services
  • Portfolio
  • Blog
  • Terms
  • Contact

Using Custom images for AddThis buttons

October 17, 2013

AddThis is a useful social sharing service allowing you to create groups of social sharing buttons in one place that you can then embed onto your website/blog etc.

You can either use their standard buttons or they kindly allow you to use your own images instead – see their help document here:

http://support.addthis.com/customer/portal/articles/381236-custom-buttons

However, what if you want to swap the image as you hover over the button?

I thought I’d share the extra bit of Jquery I have used to sucessfully switch the image on hover.

I had created a series of button images called things like “share_add_off.gif” & “share_add_on.gif”

The following code goes in the document.ready and detects if the link is being hovered over, and if so, it swaps the hovered image for the one named “_on” – and importantly swaps it back when the user mouses out.

var oldImgSrc;
var newImgSrc;
var thisImg;
$(document).ready(function(e) {
 $('.addthis_toolbox > a').hover(function(e){
   thisImg = $(this).find('img');
   oldImgSrc = thisImg.attr("src");
   newImgSrc = oldImgSrc.replace("_off","_on");
   thisImg.attr("src",newImgSrc);
 },function(){
   thisImg.attr("src",oldImgSrc);
 });
});

See it in action here:
http://lrd-thebigidea.com/work/creaseys

Share

Facebook Google+ Twitter Pinterest Email
  1. Ifdy says

    October 31, 2013 at 3:34 pm

    Hi Laura, I’m the community manager at AddThis. I came across your post, and I love how you customized our sharing icons! They look great! I’m always looking for cool stories to highlight on our blog, so if you’re interested, send me an email. 🙂

  2. Pavel says

    May 21, 2014 at 4:42 am

    Thank you.

Back to Blog

Testimonials

I like it.  I like it a lot !!!

 You have interpreted what I wanted to achieve perfectly considering what you have to play with i.e not redoing the whole thing in the process.

Fiona Simmons-MooreSouth Gloucestershire Parents & Carers
Absolutely fantastically professional web developer – I would highly recommend!!! Thank you so much Kinetic Pulse!
Tania MarstonDoris Designs
Amazing and brilliant, Kinetic Pulse have lifted a dream to reality, Highly recommended and great if you are total novice, they know their stuff…Thanks again
Annie LindridgeSalt Yourself Out
Thank you for all of your hard work its looks fab and I am over the moon with it!
Amanda MercerAmanda Mercer Ceramics
It’s been fab working with you – we love the site and certainly going to recommend you!
James DaviesThirty Eight Degrees North
Thank you guys so much for all that you’ve done helping us to create a really awesome website!! We get such great feedback – everyone loves it & we couldn’t be prouder! Look forward to working with you again soon!
Wild Thyme PlantsWild Thyme Plants
Thanks so much for all your work on this, really appreciated. It’s come on in leaps and bounds since you took over.
Pete KewRedwood Strip Curtains

Copyright 2025 Kinetic Pulse