Click here to Skip to main content
11,488,212 members (80,298 online)
Rate this: bad
good
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 at 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
0 Sergey Alexandrovich Kryukov 489
1 OriginalGriff 353
2 Advay Pandya 155
3 Mehdi Gholam 145
4 Sascha Lefèvre 135
0 Sergey Alexandrovich Kryukov 9,308
1 OriginalGriff 8,352
2 Sascha Lefèvre 3,334
3 Maciej Los 2,956
4 Richard Deeming 2,370


Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 20 Jun 2013
Copyright © CodeProject, 1999-2015
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