The boiled down code I use for my "Digg this" is:
Code:
<script type="text/javascript">
var desc;
if(!document.getElementsByName('DESCRIPTION')){desc='';}
else{desc=document.getElementsByName('DESCRIPTION')[0].content;}
var t=document.title;
t=encodeURIComponent(t);
</script>
<a href="http://digg.com/submit" onclick="window.open('http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+t+'&bodytext='+desc, 'Social','height=440,width=700, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=yes, directories=no, status=yes'); return false;"><img src="http://{Your domain name}/images/digg_16x16.gif" alt="">Digg</a>
The beauty of the code is that it doesn't have to be modified from page to page, Javascript figures out the URL, title and description for you. The one catch is that the word "description" in "document.getElementsByName('DESCRIPTION')" needs to match the case you use for your meta description tag.
Bookmarks