Easy Facebook Like button from designer snacks


/ Published in: JavaScript
Save to your folder(s)

Just add an image... try it.


Copy this code and paste it in your HTML
  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>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.