I have a website (static html) which has a title and article below (something like a news section) - i need to place the "Share on Facebook" below each article - when i click on it, the facebook popup should load that articles title and a snippet from that article. Currently i used the code below - it picks up the title and decription from the page and not from the article within the page. Please let me know how to customize it.
<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><a rel="nofollow" href="http://www.facebook.com/share.php?u=<url>" onclick="return fbs_click()" target="_blank">Share on Facebook</a>
Thanks.
(The client wants this section in static html and not in wordpress or joomla)



Reply With Quote

Bookmarks