new no margin pop js
August 16th, 2004
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
7 Comments Leave a Comment
August 16th, 2004 at 5:21 pmIt 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?
[...] With Multi-More, you can use more than one more tag in your posts and close them at will. No Margin Pop-up Images Script - So you can add neat pop-up-on-clicking images to your posts. All the ab [...]
woot! this works. thanks a bunch, very much appreciated.



test some html code with my new filter