SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Jun 2007
    Posts
    358
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Change Image on click.

    Let's see i have two images.

    Code PHP:
    $image1 = mysql_query("SELECT `image` FROM `images` WHERE `image`=`image1.jpg`");
    $image2 = mysql_query("SELECT `image` FROM `images` WHERE `image`=`image2.jpg`");

    here i have, let's say $image1 showing with a image button, "image1button.jpg". When clicked either the $image1or the button, i want the image to change to $image2 and button to change to "image2button.jpg".

    This should also work in reverse order. How can i go on about doing this?

  2. #2
    SitePoint Addict
    Join Date
    Jun 2007
    Posts
    358
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how silly of me, have figured it out. Thanks anyway


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
  •