SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jan 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    need help with images please..

    hi, i need help with JS code for images.

    I have four folders and each folder has one images, let say ( images-one.jpg, images-two.jpg, images-three.jpg, images-four.jpg).

    now,in index.php page there are four buttons, each buttons for each images.

    if i clicked button numer two for images-two.jpg, and then it will show that images name from that folder in index.php page.

    and then if i reload same index.php page or refreshed same page, i want to show SAME images that I clicked before which is images-two.jpg.

    how can i write that code to show images from four files, each files are in each folder.

    is there is website where i can learn about this case!

    please help me thanks.

    AM

  2. #2
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,108
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)
    Hi Andy,

    I think server-side code would be better equipped to do that.

    e.g. have the buttons send index.php?button=1
    And then load the info with PHP depending on the button clicked.

    All the best,


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
  •