How Do I Add a Delicious Button To My Website Or Blog?

I'm working on my blog's design and I want to add a Delicious button, so people can bookmark my posts on Delicious.
What code should I use to add this feature to my blog?

asked by Stanley in Internet | 6171 views | 07-07-2009 at 12:17 AM

Here's how to add a Delicious button to your blog or website.

The best way to accomplish this is by including some javascript which pops up a post window. If javascript is off, it will navigate to the post page.
To get this feature working just use this code:

HTML Code:
<img src="http://static.delicious.com/img/delicious.small.gif" height="10" width="10" alt="Delicious" />
<a href="http://delicious.com/save" onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return false;"> Bookmark this on Delicious</a>
If you're using Wordpress, you can also use this code:

HTML Code:
<img src="http://static.delicious.com/img/delicious.small.gif" height="10" width="10" alt="Delicious" />
<a href="http://delicious.com/save" onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent('<?php the_permalink() ?>')+'&amp;title='+encodeURIComponent('<?php the_title() ?>'),'delicious', 'toolbar=no,width=550,height=550'); return false;"> Bookmark this on Delicious</a>

answered by Ryan | 07-07-2009 at 12:23 AM

comment
Thread Tools
vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.