Hi guys,
I've written a script that makes thumbnails of the images I upload (making a gallery script for my dad's web site) and it works very well. My code for the thumbnail bit is as follows:
$filename = "images/".$file;
list($width, $height) = getimagesize($filename);
$new_height = 100;
$new_width = ($new_height / $height) * $width;
$image_p = imagecreatetruecolor($new_width, $new_height);
$image = imagecreatefromjpeg($filename);
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
imagejpeg($image_p, 'images/thumbs/".$file.".jpg', 100);
What I want to be able to do is change this to be the rollover image (I'll just add _over before the .jpg when creating the file) and then to have another image which will be the one that shows up when the mouse isn't over it that will either be faded out or grayscale or something. I've looked on the PHP manual but can't find anything that would help me to do this. Any ideas?
Thanks
Mastra6