This is a 3D green retweet button with a 3D blue tweet button.
Copy and paste the following code where you want the widget to be displayed.
<script type="text/javascript" src="http://www.retweet.com/static/retweets.js"></script>
When the URL is not the same as the current URL
The button has a brain of its own and will automatically grab the URL of the page it is placed on without you having to change a thing. However if you want to place your button on more than one page or would like it in your feed, you will need to override the URL by following the directions below.<script type="text/javascript">ust replace http://www.example.com/2009/08/example-blog-post with the URL of the page you want to retweet. The URL must be the final destination URL, not an alias, such as a link using a shortening service (eg. http://rt.nu).
url = 'http://www.example.com/2009/08/example-blog-post';
</script>
<script type="text/javascript" src="http://www.retweet.com/static/retweets.js"></script>
Smaller Button
A 3D small blue retweet button.
We also offer a smaller version of the retweet button for you website and blog owners who prefer small and simple. The small button will fit anywhere so go crazy!
<script type="text/javascript">
size = 'small';
</script>
<script type="text/javascript" src="http://www.retweet.com/static/retweets.js"></script>
Specifying a different username
By default the retweet button will be in the format of “RT [title] [link]”. You can, however change the button to retweet your user account. By specifying the ‘username’ parameter in the JavaScript you can change the format to “RT @yourname [title] [link]”.<script type="text/javascript">
username = 'mashable';
</script>
<script type="text/javascript" src="http://www.retweet.com/static/retweets.js"></script>
No comments:
Post a Comment