inherit
70565
0
Sept 26, 2018 5:22:43 GMT -8
Marc
4,107
January 2006
cr0w
|
Post by Marc on Apr 22, 2007 16:45:51 GMT -8
This code will replace the topic icons above posts with a "Share On Facebook" icon. When the icon is clicked, it will open the facebook window to share the current post.
Global Footers
<script type="text/javascript"> <!-- /* Share On Facebook by Cr0w Copyright 2007 Do Not Repost */ if(location.href.match(/action=display/)){ var td=document.getElementsByTagName('td'); function facebook(){ window.open('http://www.facebook.com/sharer.php?u='+escape(location.href)+'&t='+escape(doument.title),'sharer','toolbar=0,status=0,width=626,height=436'); return false; } for(t=0;t<td.length;t++){ if(td[t].align=="left" && td[t].width=="5%" && td[t+3].innerHTML.match(/google_ad_section_start/)){ td[t].innerHTML='<a href="http://www.facebook.com/share.php?u='+escape(td[t+6].getElementsByTagName('a')[0].href)+'" onclick="facebook()" target="_blank"><img src="http://static.ak.facebook.com/images/share/facebook_share_icon.gif" border="0" width="25" height="25" alt="Share Post On Facebook" /></a>'; } } } //--> </script>
|
|