SitePoint Sponsor

User Tag List

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

    Multiple divs interacting

    I am trying to make an image gallery that basically has 3 divs:

    1 - a div with a list of "albums"

    2 - a div where the images appear

    3 - a div with previous/next links to click through the images in an album


    I'm building a site with (hopefully) only one real page, so I want all this to happen within divs, but I'm not sure how to make the 3rd div function properly.
    Here's what should happen:
    When you click a link from the list in div 1, the first image of that album appears in div 2. Div 3 can then be used to click between the next and previous images in that album. When you click on a different link from the list in div 1, it's first image appears in div 2, and div 3 now controls just that album's images, not all the images from all albums.
    The 3rd div is the part I don't know how to do / don't know if it's possible.


    Any ideas?
    Thanks!

  2. #2
    SitePoint Wizard bronze trophy Centauri's Avatar
    Join Date
    May 2007
    Location
    Newcastle, Australia
    Posts
    3,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have a look at some of Stu Nicholls' gallery demos - you may get some ideas from these (with most of them you need to view the source to see how they work). I used some ideas from here to produce this gallery.


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
  •