Quote:
Originally Posted by rrudeboy
using this code for the menu, it's not showing the words "Submit to Twitter"....
Code:
<!-- social networking menu -->
<div class="vbmenu_popup" id="share_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">Share<a name="goto_share"></a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite"><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><a href="http://www.facebook.com/share.php?u=<url>" onclick="return fbs_click()" target="_blank" class="fb_share_link">Share on Facebook</a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite"><img class="inlineimg" src="images/misc/twitter.jpg" alt="Submit to Twitter" />
<script type="text/javascript">
var twtTitle = document.title;
var twtUrl = location.href;
var maxLength = 140 - (twtUrl.length + 1);
if (twtTitle.length > maxLength) {
twtTitle = twtTitle.substr(0, (maxLength - 3))+'...';
}
var twtLink = 'http://twitter.com/home?status='+encodeURIComponent(twtTitle + ' ' + twtUrl);
document.write('<a href="'+twtLink+'" target="_blank"'+'><'+'/a>');
</script>
</td>
</tr>
</table>
</div>
<!-- / social networking menu -->
what's wrong with my code ?
tks.
(plus where is it getting the image for FaceBook, it's showing images from my forums like avatars :}
|
There is more code than just that, please check this post again and make sure you add all of the code as instructed
https://vborg.vbsupport.ru/showpost....0&postcount=10
It's grabbing the images from Facebook and Digg directly from their sites, the image for Twitter needs to be uploaded to your forum.