Re: Opening a Dynamic Pop Up Window

From: Date: Thu, 29 May 2003 19:18:34 +0000
Subject: Re: Opening a Dynamic Pop Up Window
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-149477@lists.php.net to get a copy of this message
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: mailgroups@jlfx.com (Jeffrey L. Fitzgerald) > Newsgroups: php.general > Date: Thu, 29 May 2003 14:28:11 -0400 > To: php-general@lists.php.net > Cc: php-general@lists.php.net > 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 >

« previous php.general (#149477) next »