With a “Bookmark this on Delicious” link, you can provide your site visitors an easy way to save it to Delicious. Here is an example (with an image added before the link):
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. Here is the 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&noui&jump=close&url=’+encodeURIComponent(location.href)+’&title=’+encodeURIComponent(document.title), ‘delicious’,’toolbar=no,width=550,height=550′); return false;”> Bookmark this on Delicious</a>
Blog templates
A quick word of advice: Don’t do this unless you are a geek.
WordPress
To place this on your front page, go to Presentation -> Theme Editor -> Main Index Template. You may place the following code where you wish:
<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&noui&jump=close&url=’+encodeURIComponent(‘<?php the_permalink() ?>’)+’&title=’+encodeURIComponent(‘<?php the_title() ?>’),’delicious’, ‘toolbar=no,width=550,height=550’); return false;”> Bookmark this on Delicious</a>
Movable Type
In your Main Index and Individual Archive templates, after </MTIfAllowComments>, add:
<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&noui&jump=close&url=’+encodeURIComponent(<$MTEntryPermalink$>)+’&title=’+encodeURIComponent(<$MTEntryTitle$>),’delicious’, ‘toolbar=no,width=550,height=550’); return false;”> Bookmark this on Delicious</a>
Browser Buttons
If you’re looking to install the browser toolbar buttons for saving bookmarks to Delicious, here’s where to go: the Firefox buttons, Internet Explorer buttons, or bookmarklet buttons for any browser.