|
[ The Generic PHP Picture Viewer ]
Simple and stupid, but you wouldn't believe how many times I've been asked for something like this. So here you have it -- the generic PHP picture viewer at the most base.
And, if you have a thumbanil named 'pic_small.gif' and an image named 'pic_big.jpg' in the 'img' directory, your href on the referring page looks like this:
the code:
Create a page called 'picture_view.php', painted the way you like, with this embedded in the middle of it.
<div align="center" style="padding-top:10px;"> <? $lead = "img/"; echo "<img src='$lead$source' alt='' border='0'>"; ?> </div> <div align="center" style="padding-top:10px;"> <a href="JavaScript:window.close();" target="content">close</a> <a href="picture_view.php?source=pic_big.jpg" target="_blank"> <img src="img/pic_small.gif" border="0" width="xx" height="xx" alt=""> </a> considerations:
|
