Posted By

dottDesign on 04/29/10


Tagged

javascript textmate facebook


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

khawaib


Post to Facebook


 / Published in: Other
 

  1. <!-- share button -->
  2. <script type="text/javascript">// <![CDATA[
  3. function fbs_click() {u='<data:post.url>';t='<data:post.title>';window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&amp;t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}
  4. // ]]></script>
  5. <style><!--
  6. html .fb_share_button { display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; height:15px; border:1px solid #d8dfea; background:url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif?8:26981) no-repeat top right; } html .fb_share_button:hover { color:#fff; border-color:#295582; background:#3b5998 url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif?8:26981) no-repeat top right; text-decoration:none; }
  7. --></style>
  8. <a expr:href="&quot;http://www.facebook.com/share.php?u=&quot; + data:post.url" class="fb_share_button" style="text-decoration: none;" onclick="return fbs_click()" target="_blank">Share</a>

Report this snippet  

You need to login to post a comment.