PDA

View Full Version : Adding rollover image functionality to script



SteveC
09-13-2007, 01:29 PM
Script: DD PHP Photo Album script

http://www.dynamicdrive.com/dynamici...photoalbum.htm

May I first thank you for such a great script.
I am integrating it into a site and it's working fine with the image displaying on the same page in a div.

I would just like to know if it's possible to add image roll-over functionality to the smaller thumbnail images so that when a user mouses over or out the thumbnail changes to a image stored in a separate directory like the large and small images do at the moment.

If you think this is possible could you give me a clue, I've had several attempts but could not get it working.

Many thanks Steve

ddadmin
09-14-2007, 05:23 AM
The script supports this already, provided your <img> tag doesn't contain any explicit width/height attributes. The browser will then just use the rollover images' natural dimensions.