Saturday, September 06, 2008
As I have discussed in previous article Yahoo Buzz and Digg.com buttons are very important for generating traffics to your site. And have free external links to your site. Here I will discuss how to add Yahoo Buzz! button to each post of blog.
Please visit http://buzz.yahoo.com/buttons link and get the code for the required button. I will explain it for the above button's code. For the other buttons you can perform similar steps.
The code for the above button is:
To provide a story’s headline upon submission:
yahooBuzzArticleHeadline = "Enter Story Headline Here"
To provide a story’s summary upon submission:
yahooBuzzArticleSummary = "Enter Story Summary Here"
To provide a story’s category upon submission:
yahooBuzzArticleCategory = "Enter Story Category Here"
where "Enter Story Category Here" must be one of the following: business, entertainment, health, images, lifestyle, politics, science, sports, travel, usnews, video, world-news
To provide a story’s media type upon submission:
yahooBuzzArticleType = "Enter Media Type Here"
where "Enter Media Type Here" must be one of the following: text, image, video
Finally, to automatically pull the URL associated with the page where the button lives upon submission:
yahooBuzzArticleId = window.location.href
yahooBuzzArticleHeadline = "<data:post.title/>";
yahooBuzzArticleSummary = "<data:post.title/>";
yahooBuzzArticleCategory = "Sci/Tech";
yahooBuzzArticleType = "Image";
yahooBuzzArticleId = "<data:post.url/>";