Call this javascript  function when the image is clicked; share url means the url you want to share and share_title means the title of your post; 
function popup_share (share_url,share_title)
{
var enc_url=encodeURIComponent(share_url);
var enc_title=encodeURIComponent(share_title);
var res_url="http://www.facebook.com/sharer.php?u="+enc_url+"&t="+enc_title; 
window.open (res_url, "facebookshare","menubar=1,resizable=1,width=650,height=450"); 
return false;
}
 
 
 
No comments:
Post a Comment