9
I am using the sharethis plugin to share content on social networks. For this I am making the following call:
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=YOUR_PUBLISHER_ID"></script>
The problem is that this code generates an image, and I wanted to use some images of my sharing:
<img width="125" border="0" height="16" alt="Share" src="//ct1.addthis.com/static/btn/v2/lg-share-pt.gif"></img>
Is it possible to hide the image in javascript? To hide the image I am trying this way but it does not work:
<script>
$('#teste2').find('img[src$="//ct1.addthis.com/static/btn/v2/lg-share-pt.gif"]').css('visibility', 'hidden');
</script>
I found this example on the net, and I was able to modify it to what I wanted. But in this case I’m not succeeding, I don’t know if it will be by way of the generated image.
http://jsfiddle.net/bTf7K/162/
The point is that my images appear correctly and do the sharing, but the image is also added to the top and I wanted to hide it.
This works well, the problem is that it is loading the sharethis image in order to load the page (I think). So you’re not hiding my image
– pc_oc
@pc_oc, I added another idea.
– Sergio
I got it from the last idea. Thanks again!
– pc_oc