Posted By

jkdreaming on 04/07/12


Tagged

simple button facebook like


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

burnandbass
clacwebstudio
Priestd09


Easy Facebook Like button from designer snacks


 / Published in: JavaScript
 

URL: http://dsnacks.me/web/custom-facebook-like-button-design

Just add an image... try it.

  1. <script>function fb_like() {
  2. url=location.href;
  3. title=document.title;
  4. window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(url)+'&t='+encodeURIComponent(title),'sharer','toolbar=0,status=0,width=626,height=436');
  5. return false;}</script>
  6.  
  7. <a href="http://www.facebook.com/share.php?u=URL-TO-SHARE" onclick="return fb_like()" target="_blank">Custom Image Here</a>

Report this snippet  

You need to login to post a comment.