![]() |
|
Javascript Popups of largest Album Image? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Javascript Popups of largest Album Image? (/thread-572.html) |
Javascript Popups of largest Album Image? - kevito - 2006-06-08 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.) Javascript Popups of largest Album Image? - Chilifrei64 - 2006-06-08 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 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 Javascript Popups of largest Album Image? - kevito - 2006-06-08 Thanks for the reply. I'm new to zenphoto. In what file would I place this code? Javascript Popups of largest Album Image? - trisweb - 2006-06-09 That'd go in image.php, where the current link is for the full size image. It looks like: ` Javascript Popups of largest Album Image? - kevito - 2006-06-09 thanks! Javascript Popups of largest Album Image? - Barbara - 2007-02-19 I almost got it working. I put function PopupPic(sPicURL) { window.open("popup.htm?"+sPicURL, "", "resizable=1,HEIGHT=200,WIDTH=200"); }
|