This should be fairly easy. It sounds like the script you are using is
opening only the image in a new window, and not a page that loads the image
in a new window.

Just add some Javascript to the links around your thumbnails, like this:

<a href="javascript:window.open('show_photo.php?img=image.jpg');">

Then you need to create a script called show_photo.php that takes the "img"
var passed by the Javascript above and loads that image onto the page.

$image = $_GET['img'];

echo "<img src='$image' border=0>";

Hope that helps.

Monty

> From: [EMAIL PROTECTED] (Jeffrey L. Fitzgerald)
> Newsgroups: php.general
> Date: Thu, 29 May 2003 14:28:11 -0400
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Opening a Dynamic Pop Up Window
> 
> 
> Help! :-)
> 
> Have a need for a pop up window to show images when the thumbnail is
> clicked. But the script I found only shows the image and no background,
> etc. I want to be able to have the pop up open and then send it a php
> created dynamic page with the proper html and image.
> 
> In perl I know how to do this, by calling a perl script, sending the
> filename variable and returning with a generated page. But I am not as
> familiar with PHP. Here is the script I found:
> 
> http://www.ciarasprettygoodpictures.com/gallery.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to