Thursday, June 7, 2007

Integrating Digg tools into your Blog

I was messing around with trying to get a pretty embedded Digg button on my Blog and found this integration manual with all the button options explained with examples.

I added it to my Blogger template as the following code (results are on my site by each posted article):

<!-- digg button -->
<div style="float:left; margin-left:10px;">

<script type="text/javascript">
digg_url = "<data:post.url/>";
digg_bgcolor = "lightyellow";
digg_skin = "compact";
digg_title = "<data:post.title/>";

</script>

<script src="http://digg.com/tools/diggthis.js" type="text/javascript"/>
</div>
<!-- end digg button -->

/*
* The only option missing (I don't use it) is:
*/
digg_bodytext = "<data:post.body/>";