now it even automatically detects the image’s width and height!

here’s the code
<a href="http://www.google.com/logos/summer2004_swimming.gif" onclick="viewPic(this.href); return false"><img src="http://www.google.com/images/logo_sm.gif" alt="new dodo's no margin js: it automatically detects the image's width and height" /></a>

here’s the effect
new dodo's no margin js: it automatically detects the image's width and height

here’s how to get your own:
download dodos new no margin js

put this in your header:
<script type="text/javascript" src="dodosnewnomargin.js"></script>

the code above should also work for you :) credit