Member
Member
kevito   2006-06-08, 18:28
#1

Is there a way to have the largest (original uploaded size) image popup in a new window using Javascript? (using this method: http://tinyurl.com/ptqkq)

Currently it links directly to the image, but I'd like it to pop up in a window. (I cannot use the lightbox method, my friend doesn't like the look/feel of that, so a simple popup is what I need.)

Member
Member
Chilifrei64   2006-06-08, 18:46
#2

go to that link and view the page source.. all the code you need in the source

you will see something like this for the image link
Image 1

your source will look similar to this`

Image 1`

I am at work and cannot really test it.. but really you just need to pass the url into the javascript and it should work

Member
Member
kevito   2006-06-08, 18:57
#3

Thanks for the reply. I'm new to zenphoto. In what file would I place this code?

Developer
Developer
trisweb   2006-06-09, 06:40
#4

That'd go in image.php, where the current link is for the full size image. It looks like: `

Member
Member
kevito   2006-06-09, 22:22
#5

thanks!

Member
Member
Barbara   2007-02-19, 22:32
#6

I almost got it working. I put
`

function PopupPic(sPicURL) {

window.open("popup.htm?"+sPicURL, "", "resizable=1,HEIGHT=200,WIDTH=200");

}

between and in image.php, then I changed "> to ">`.
The window pops-up but there's no image in it, it says 500 Internal Server Error.
Any ideas on how to fix that?

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.