Php Codes
Algorithms
Arrays
Authentication
Calendar
Code Snippets
Programs
Content Manage
Contest Related
Cookies
Credit Cards
DBase Related
Databases
Date Time
Directories
E-Mail
Errors
File
File System
Forms
Handling
Graphics
HTML and PHP
Informix
Ingres
InterBase
LDAP
Look and Feel
Miscellaneous
MySQL
Other
PHP Classes
Searching
Navigation
Statistics
Strings
User Manage
Php > Graphics sample source codes
Grey Image with Coloured Mouse Over
Grey Image with Coloured Mouse Over #####I have included the 2 functions MSFPhover and MSFPpreload so it works #####without already having these declared elsewhere #####you should also note that you will need the php gd extension library #####on your server -- if you are sorted you can use this script with jpEg, gif #####and png formats -- works fine with all #####use: echo ImageGreyOver('image.gif','http://link') to define your image source #####and its link -- the image should, if referenced in this manner, be in the #####same directory as the two php files #####NB:I have enclosed the main html-generating php file in html echoes to make it #####easy to create a freestanding file for testing -- call this first part #####file_something.php3 #####alternatively, strip the html echoes out #####(NOT the echo ImageGreyOver('image.gif','http://link')) #####and chuck in your script #####HTH echo ""; echo ""; echo "
"; function ImageGreyOver($src,$href,$imageprops="border=0",$linkprops=""){ global $giop; $giop++; $greysrc="greyimggif.php3?src=$src"; $size=GetImageSize($src); return "\n\n