Flipping through images in one html page

Discussion in 'HTML & Website Design' started by dl77002, Feb 9, 2007.

  1. #1
    Hi all.

    I have a thumbnailed gallery that looks like this:
    [​IMG]

    When you click one of the thumbnails, a new window opens up that looks like this:
    [​IMG]

    What I want to do is make it so that when you click either the left or right arrows, the image changes, but the actual html file does not. Keep in mind though, that if I were to click thumbnail 5 for example, I would need the new window to open displaying image 5. Normally I would just link to image5.html, but I want all of this to happen in one html so that I do not have to make a new page each time I add a photo.

    I would need each thumbnail to open the same html page, but a different image within it.

    Thanks in advance for any ideas.
     
    dl77002, Feb 9, 2007 IP
  2. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #2
    That could be done using iframe right ?
     
    login, Feb 9, 2007 IP
  3. unitedrokz

    unitedrokz Peon

    Messages:
    86
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yeah an iframe could work - but you would still need a seperate page for each image so that kinda defeats the purpose

    could be done in flash very easily if you wanted to go down that route.

    or else im thinking the only other way is javascript, php or some other server script.....

    regardless i dont think it would be very difficult, but i would only know the exact coding needed to do it in flash...someone else should be able to help you with the other methods
     
    unitedrokz, Feb 9, 2007 IP
  4. dl77002

    dl77002 Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for your responses.

    What exactly is an iframe? I don't mind making a page for each image so long as I don't have to code the left and right buttons each time .I used to do it this way, every time I'd make a new page I'd have to link the left arrow to the previous html, the right arrow back to 1, and then code the left arrow on 1 to the new html, and the right arrow on the previous last image to the new last image. If you had trouble reading that, image how much trouble I had coding it.

    I'd definitely like to avoid flash...
     
    dl77002, Feb 9, 2007 IP
  5. unitedrokz

    unitedrokz Peon

    Messages:
    86
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #5
    unitedrokz, Feb 9, 2007 IP
  6. dl77002

    dl77002 Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I like this, but how can I link to specific images from thumbnails that are in another window?

    Also, it doesn't look like the images can be different dimensions with this one (ie. portraits and landscapes).
     
    dl77002, Feb 9, 2007 IP
  7. rgchris

    rgchris Peon

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Your best bet would probably be Javascript. You could create an onclick function to handle the image source on the image once a button is clicked.
     
    rgchris, Feb 9, 2007 IP
  8. Blame Me

    Blame Me Guest

    Messages:
    162
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You could try this tool from Jalbum I use it one one of my sites and it works great.

    You can customize it to suit your pages if you wish.

    And its FREE
     
    Blame Me, Feb 9, 2007 IP