Click here to Skip to main content
12,075,542 members (68,053 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Java struts
<td style="padding:10px" class="facts"><%=factContent%> <%=factId%> </td>
factContent is description want to desplay when share.
factID - is fact id which I am going to share.

<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>
 <style>
  html .fb_share_link
  {
    padding:2px 0 0 20px;
    height:16px;
    background:url(http://static.ak.facebook.com/images/share/facebook_share_icon.gif?6:26981) no-repeat top left;
  }
 </style>
 <a rel="nofollow" href="http://www.facebook.com/share.php?u=http://www.rajinitruths.com/newFacts.do?iPageNo=<%=factId%>&<%=factContent%>>" title="<%=factContent%>" onclick="return fbs_click()" target="_blank">
   <img src="http://digitalshoebox.ca/wp-content/uploads/2013/01/Facebook-Share-Button.png" height="20" width="40"/>
 </a>
Posted 19-Jun-13 20:59pm
Comments
Shubhashish_Mandal 20-Jun-13 2:23am
   
Need more information what exactly you want to do.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160208.1 | Last Updated 20 Jun 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100