new no margin pop js

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


7 Comments Leave a Comment

dodo [ Quote ]

test some html code with my new filter

<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Google</title><style><!--
body,td,a,p,.h{font-family:arial,sans-serif;}
.h{font-size: 20px;}
.q{color:#0000cc;}
//-->
</></style>
<script>ction sf(){document.f.q.focus();}
// -->
</script></meta></head></html>
August 16th, 2004 at 5:21 pm
Frank [ Quote ]

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…

August 16th, 2004 at 6:06 pm
dodo [ Quote ]

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.

August 16th, 2004 at 6:11 pm
Marlyse [ Quote ]

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?

August 19th, 2004 at 10:55 pm
wordlog.com » Pure-Essence Plugins [ Quote ]

[...] 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 [...]

August 19th, 2004 at 11:39 pm
dodo [ Quote ]

yea just use
onclick
with lower case “c”

August 20th, 2004 at 10:58 am
Marlyse [ Quote ]

woot! this works. thanks a bunch, very much appreciated.

August 20th, 2004 at 11:05 am

Leave a Comment Name, email and comment are required.
Email will never be displayed.

Leave a Comment
  1. :biggrin: :blank: :blush: :bored: :confused: :cool: :down: :evil: :frown: :grin: :grr: :laidback: :left: :mad: :right: :sad: :secret: :shock: :smile: :stress: :tongue: :up: :wink: :yawn: :cute: :dead: :film: :floppy: :glasses: :grumpy: :headphones: :heart: :lightbulb: :ouch: :tv: :upsidedown: :vodka: :yell: :yuck: :yummy: