Delicious Deviation

If you are like me (and I am realistic to know that the odds are really against that), you could care less about visitors to your blog that have Javascript disabled.  There is really just no reason for it, with 99.99% of browsers supporting it.  So, if you want to save a few bytes and just have a clickable icon for your Delicious tag, here is my version:

<img      id=”DeliciousIcon1″  title=”Bookmark this on Delicious”
src=”http://static.delicious.com/img/delicious.small.gif”
height=”10″ width=”10″ alt=”Bookmark this on Delicious”
style=”cursor: pointer; vertical-align: middle”
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;” />

Facebooktwitterredditlinkedinmail
© Scott S. Nelson