SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Feb 2009
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Returning from a thumbnail gallery

    I have a small thumbnail gallery on my site at the moment, but when a thumbnail is clicked on it expands in the same page, and the only way to get back to the gallery is by pressing the back button.

    What's the best way to tackle this - have the image open in a separate tab/browser and add a "Close" button or leave it as it is and add a "Return to main page" button?

    And...how do I do either?

  2. #2
    #titanic {float:none} silver trophy
    molona's Avatar
    Join Date
    Feb 2005
    Location
    from Madrid to Heaven
    Posts
    8,024
    Mentioned
    211 Post(s)
    Tagged
    1 Thread(s)
    If it expands I guess that you used JavaScript for that. Have you tried a JavaScript library? Lightbox is quite good at creating effects for photo galleries. It is based on Prototype.

    Another JavaScript library that could help is JQuery.

  3. #3
    SitePoint Zealot
    Join Date
    Nov 2007
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1. open in a new tab/window - by using <A target="_blank"] ...... in your link

    2. use a layer (load image onto it) - show / hide the layer using javascript


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
  •