How To Create Dynamic Digg/Reddit/Del.icio.us Buttons For Your Pages (Includes Code)
By Daniel Miessler on January 16th, 2007: Tagged as Blogging | Delicious | Digg | Reddit | Social
Everyone’s seen the cool little icons/buttons for Digg, Reddit, and Del.icio.us shown under various articles online. They make it easy for users to submit to their favorite social site by automatically filling in the title of your page. I also think they subconsciously add legitimacy to a web presence. In short, they’re just great to have.
A number of plugins can be installed in your blogging software to enable this functionality, but what happens if you want to use these little jems on your own static content? I wondered the same thing and made my own.
Here’s the code (click the image):
<a href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(document.location.href)+' '"> <img class="borderless" src="http://dmiessler.com/images/digg.gif"alt="Submit to Digg" height="18" width="18" /></a> <a href="javascript:location.href='http://reddit.com/submit?phase=2&url='+encodeURIComponent(document.location.href)+' '"> <img class="borderless" src="http://dmiessler.com/images/reddit.gif"alt="Submit to Reddit" height="17" width="17" /></a> <a href="javascript:location.href='http://del.icio.us/post?v=2&url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title)+' '"><img class="borderless" src="http://dmiessler.com/images/delicious.gif"alt="Bookmark at Del.icio.us" height="16" width="16" /></a>
Related Posts
- Creating Submission Image Links For Digg, Reddit, and Del.icio.us
- The Real Reason Wired Is Bashing Digg: Their Parent Company Owns Reddit
- This Link Could Have Been Anything [Reddit Spam Issue]
- Digg and Reddit: It’s Not Wrong to Create and Submit Your Own Content. In Fact, it’s Necessary.
- Add A “Reddit this” Option To Your Feedburner RSS Feed (FeedFlare)
