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 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
test some html code with my new filter
Google
ction sf(){document.f.q.focus();}
// -->
It seems that the code isn’t working correctly under Safari 1.2. It creates a new window thats about the size of a smaill box. Or was this intended…
interesting.. there supposed to be a picture in the new window.. it’s just blank? i don’t have the browser so i don’t know how it looks like.
I use my own popup script in wp which I adopted over time and it works well, but the ‘onClick’ in the a-href tag does not validate and it’s the only error my wp pages create – seing that your script also uses the same comment, I’m curious to know if there is a solution to this problem?
yea just use
onclick
with lower case “c”
woot! this works. thanks a bunch, very much appreciated.