Closed Thread Icon

Topic awaiting preservation: Loading Pics in PopUps (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=8060" title="Pages that link to Topic awaiting preservation: Loading Pics in PopUps (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Loading Pics in PopUps <span class="small">(Page 1 of 1)</span>\

 
Skatefx
Bipolar (III) Inmate

From: Small Patch of Grass in CT
Insane since: Mar 2001

posted posted 02-01-2002 22:35

I have a bunch of thumbnails and I was looking to be able to load pics in a popup window. But I want to use some script that can detect the size of the pic and make the pop-up window accordingly. Anyone have any ideas?

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 02-01-2002 23:28

Can you do PHP?

Dracusis
Maniac (V) Inmate

From: Brisbane, Australia
Insane since: Apr 2001

posted posted 02-02-2002 05:35

You can always send the image size (Height & Width) to the window popup function and use those values to set size of the popup window. But you'll need to know the size of the image when making the link.

Appart from that you'll need to nab the height and width using serverside code PHP as Pugzly suggested.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 02-02-2002 08:29

You know, search function can do wonders...

http://www.ozoneasylum.com/Forum2/HTML/001062.html
http://www.ozoneasylum.com/Forum2/HTML/001186.html

Oh, and here's direct link to Bugimus' JS code that'll do what you want:

http://bugimus.com/gurus/image_popup/imagepopup.html


Skatefx
Bipolar (III) Inmate

From: Small Patch of Grass in CT
Insane since: Mar 2001

posted posted 02-04-2002 05:06

Thats perfect. Exactly what Im looking for.

Thanks Max!

Peace



dave s
Nervous Wreck (II) Inmate

From: ground zero
Insane since: Dec 2001

posted posted 02-05-2002 02:43

Wow. Thanks Max. And Bugimus.. I've been looking for something just like this.
-=Damn I love this place=-

« BackwardsOnwards »

Show Forum Drop Down Menu