tweet button of twitter

Twitter is launching an official Tweet Button this week (via Mashable)

For any Blog:

All you need is to put a couple of lines into you own blog or website :

<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
<a 
href
="http://twitter.com/share" class="twitter-share-button">Tweet</a>

 

A preview :

For Blogger’s users :

Blogger-HTML-Edit1

<a href="http://twitter.com/share" class="twitter-share-button" 
        expr:data-url
='data:post.url' 
        expr:data-text
='data:post.title' 
        data-count
="horizontal" 
        data-via
="Your_Twitter_Account_Name"  
        data-lang
="en" >Tweet</a>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>

 

  • to change the style of your tweet button you should change “data-count” value :

data-count="vertical"

data-count="horizontal"

data-count="none"

for more information please visit http://twitter.com/goodies/tweetbutton

No comments:

Post a Comment