Here is the code:
Code: Select all
<A HREF="imgzoom.php?imgfile=<?=$imgurl?>"
onClick="popup = window.open('imgzoom.php', 'PopupPage', 'height=600,width=540,scrollbars=yes,resizable=yes'); return false" target="_blank">
<img width="75"
height="75"
src="<?=$imgurl?>"
valign="top"
style="border:1px solid gray;"
alt="<?=$name?> - Click for closeup"
/>
</a>my code for the new window:
Code: Select all
<?php
if(isset($_GET['imgfile'])) {
echo 'URL FOUND!';
$imgurl = $_GET['imgfile'];
} else {
echo 'URL NOT FOUND!';
}
?>
<html>
<body bgcolor="#B2B2B2" align="center">
<img src="<?=$imgurl?>" width="500" height="500" alt="" style="border:1px solid gray;" align="center" />
<br/><br/>
<center><a href="javascript:self.close()">Close Preview</a></center>
</body>
</html>