Welcome to WebmasterWorld Guest from 34.204.191.31

Forum Moderators: open

Message Too Old, No Replies

Need JS for popup images pls

Centered and sized

     
4:58 pm on Dec 10, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 20, 2003
posts:175
votes: 0


If someone could please supply me with a script that will onclick popup a centered window that is sized to an image. I'd like a script that does not require me to place image information within the script itself but rather at the javascript link within my contents. Also, it would be great if I can either keep the window from being reused -OR- when a user clicks another image for popup, the popup window jumps to the foreground.

TIA!

5:11 pm on Dec 10, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member blobfisk is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Feb 25, 2002
posts:3185
votes: 0


Hi divaone,

This thread may be of use?

[webmasterworld.com...]

5:30 pm on Dec 10, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 20, 2003
posts:175
votes: 0


very close! I have two scripts. One opens an html (or whatever) file centered. Another opens an image file according to the size of the image. I'd like to combine the two. I don't care to create an HTML file for each image but need to get rid of those left and top margins. There will also be several images for popup on one page, all of different sizes so that creates another issue.