How to add Twitter to your website
You can add twitter to your website and ca twit your link to other.
Here is the code.
tweetthis.gif is the image you can display on your website.
Here is the code.
<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"'+'><img src="tweetthis.gif" border="0" alt="Tweet This!" /'+'><'+'/a>');
</script>
tweetthis.gif is the image you can display on your website.
Comments
Post a Comment