DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Bookmark Your Posts On Del.icio.us

07.04.2005
| 1066 views |
  • submit to reddit
        I wrote a simple code using javascript which can be used ‘to popup bookmark’ your post on delicious.

The code is as follows (for blogger users)
<!-- Bookmark post on Del.icio.us -->
Bookmark this on <a href="javascript:void(myPop=window.open('http://del.icio.us/login
/?v=2&noui=yes&jump=close&title=<$BlogItemTitle$>&url=
<$BlogItemPermalinkUrl$>','delicious','toolbar=no,
scrollbars=no,width=700,
height=250,status=yes,resizable=yes'));myPop.focus();">Del.icio.us</a>
<!-- Bookmark post on Del.icio.us -->
Add the above code to post-footer in the blog template.

For TypePad/MT users

replace <$BlogItemPermalinkUrl$> with <$MTEntryPermalink$> and <$BlogItemTitle$> with <$MTEntryTitle encode_url="1"$>

For Wordpress users

replace <$BlogItemPermalinkUrl$> with <?php the_permalink() ?> and <$BlogItemTitle$> with <?php the_title(); ?>