Navigation help please

Discussion in 'Programming' started by Kyote, Mar 31, 2007.

  1. #1
    Hi,

    I have a client that requires thumbnails for a gallery. I have built a thumbnail viewer with back/page/next links - works great. The problem: They also want a back/next link under the main pic that the thumbnails call.

    Currently, clicking on a thumbnail reloads the page and passes the picture ID in the URL, when the page loads, a query then retrievs the picture with the pased URL.

    Has anyone got any ideas on how I can create the back/next links, my guess is that I need to somehow load the previous and next picture ID... Here is link to the live site:

    http://www.marygrekos.com/gallery.cfm

    You wil notice the back/next links under the main picture in the bottom right hand corner. If anyone needs to see the coding let me know. Any help this would be greatly appreciated. Thanks in advance, Brad
     
    Kyote, Mar 31, 2007 IP
  2. datropics

    datropics Peon

    Messages:
    309
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Kyote,

    is the image itself stored in the database?

    If it is, then you can create an <iframe> that holds the larger picture (read up on iframe, if you don't know how to use it)

    If it is not stored in the database, then you have some more options:

    1) you can carry out an onmouseover event that changes the src of the larger image. If you are using the filters, then the transition will still take place -

    2) You can NOT use the larger image, and allow the image to 'pop-up' (not an actual pop-up) when the user clicks the thumbnail. Look at this link from dynamic-drive (http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm)

    I'm sure when you look and consider you'll see a few other options.

    Hope this helps

    daTropics
     
    datropics, Apr 2, 2007 IP