Twitter Share
<style type="text/css" media="screen">
#custom-tweet-button a
{
display: block;
}
</style>
<div id="custom-tweet-button">
<a href="https://twitter.com/share?url=<%#HttpContext.Current.Request.URL.ToString() %>" target="_blank">
<asp:Image ID="imgtwitter" runat="server" ImageUrl="~/Portals/_default/Skins/CDHome/images/twittericon.png" Width="22" Height="22" alt="" /></a>
</div>
LinkedIn Share
<script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
<script type="IN/Share"></script>
Facebook Share
<a href="http://www.facebook.com/share.php?u=<url>">
<asp:Image ID="imgFB" runat="server" onclick="return fbs_click()" target="_blank"
ImageUrl="~/Portals/_default/Skins/CDHome/images/facebookicon.png" Width="22"
Height="22" alt="" /></a>
<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://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif?8:26981) no-repeat top left;
}
</style>
<style type="text/css" media="screen">
#custom-tweet-button a
{
display: block;
}
</style>
<div id="custom-tweet-button">
<a href="https://twitter.com/share?url=<%#HttpContext.Current.Request.URL.ToString() %>" target="_blank">
<asp:Image ID="imgtwitter" runat="server" ImageUrl="~/Portals/_default/Skins/CDHome/images/twittericon.png" Width="22" Height="22" alt="" /></a>
</div>
LinkedIn Share
<script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
<script type="IN/Share"></script>
Facebook Share
<a href="http://www.facebook.com/share.php?u=<url>">
<asp:Image ID="imgFB" runat="server" onclick="return fbs_click()" target="_blank"
ImageUrl="~/Portals/_default/Skins/CDHome/images/facebookicon.png" Width="22"
Height="22" alt="" /></a>
<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://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif?8:26981) no-repeat top left;
}
</style>
No comments:
Post a Comment