/ Published in: Other
Expand |
Embed | Plain Text
<script type="text/javascript">// <![CDATA[ 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=Check This Out: '+encodeURIComponent(twtTitle + ' ' + twtUrl); document.write('<a href="'+twtLink+'" target="_blank"'+'><img src="http://www.website.com/path/tweet_this.jpg" border="0" alt="Tweet This!" /'+'><'+'/a>'); // ]]></script>
Comments
Subscribe to comments
You need to login to post a comment.

Depricated...OAuth required...