image change on rollover

Discussion in 'PHP' started by promotingspace.net, Aug 30, 2008.

  1. #1
    Hi
    I want to dsplay 3 images for a product. one image tag, and I’d like 3 small tags with images (corresponding to Image1, Image2, Image3 of the product ( the image names are in database) that when you rollover them the large image changes into that image
    I think java script is required
    can you help me with this ?
    thanks in advance
     
    promotingspace.net, Aug 30, 2008 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Yes, so this is the wrong forum section...
     
    nico_swd, Aug 30, 2008 IP
  3. promotingspace.net

    promotingspace.net Peon

    Messages:
    361
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    promotingspace.net, Aug 30, 2008 IP
  4. ForumJoiner

    ForumJoiner Active Member

    Messages:
    762
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    83
    #4
    I answered there.

    It worth to know that even the actual program uses JavaScript, if you have a large number of images, their names could be read from a MySQL database or from an external file. Both cases, a PHP program can generate, on the fly, the correct JavaScript code. More exactly, it will replace on the JavaScript template the actual names of the graphic files.
     
    ForumJoiner, Aug 31, 2008 IP