Results 1 to 2 of 2

Thread: Adding rollover image functionality to script

  1. #1
    Join Date
    Sep 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Adding rollover image functionality to script

    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

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •