I need a php script, something along the lines of images/image.php?page=whatever.jpg where clicking on a link to whatever.jpg would pop up a page with a black background and the image in the link centered. this way i dont have to make a separate page for each image. you know what i mean?
06-05-2005, 05:59 PM
i have need come along a script wich does what your looking
hope you find what your looking for if you do find a script please let me knoW! :D
06-05-2005, 06:05 PM
<a href="picture.jpg" target="new" onClick='window.open("picture.jpg","","width=500px,height=500px,resizable=yes,scrollbars=yes"); return false;'>View this picture.</a>
would that work, dunno....
That should work, but I'm looking to put the pics on a black bg to match the rest of the site, but if I cant find anything else or if no one else can help me, I'll probably use that
06-05-2005, 06:58 PM
06-06-2005, 07:05 PM
this should work for you. Here is the PHP page (called image.php):
$output = '<html><head></head><body bgcolor="#000000">';
$output.= '<div align="center"><img src="'.$_GET['filename'].'"></div>';
and the link that opens the pic:
<a href="image.php?filename=MYFILE.JPG" target="_blank">View this picture.</a>
Replace MYFILE.JPG with the path & name of the image, e.g. pic001.jpg or images/PIC-002.JPG
cheers, hope this helps!
Exactly what I needed! Thanks for the help!