is it possible to have one page with lots of small thumbnails and when you click on a thumbnail, the original (big) image appears on the same page next to all the thumbnails??
i am trying to find a tutorial for something like this but i am not sure what to search for???
@bokehJul 24.2006 — #Here's something to start you off... Just change the image directory on line 3 to wherever the images are [B]in relation to[/B] the script. Obviously you would need to edit the large images so they are all a similar size:[code=php]<?php
if(isset($_GET['thumb'])) { // The file $filename = $directory.$_GET['thumb'];
// Check if client has a cached copy $last_modified = date("D, d M Y H:i:s GMT", filemtime($filename)); // Date last modified if(isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) { // If file not modified since last viewing don't send it if($last_modified == $_SERVER['HTTP_IF_MODIFIED_SINCE']) { header("HTTP/1.x 304 Not Modified"); die; } }
// Set a maximum height and width $width = $max_width; $height = $max_height;
// Content type header('Content-type: image/jpeg'); header("Last-Modified: $last_modified");
// Get new dimensions list($width_orig, $height_orig) = getimagesize($filename);