Results 1 to 3 of 3

Thread: lightbox image viewer gallery with single image

  1. #1
    Join Date
    Sep 2009
    Posts
    28
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default lightbox image viewer gallery with single image

    1) Script Title:
    Lightbox Image Viewer 2.0

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...box2/index.htm

    3) Describe problem:
    I'm just trying to find out if its possible to use the above grouped script with a single image displayed e.g I'd have a single image saying 'student work' and when clicked it would open the image from which you can then few further examples? (without having those examples displayed beside the original image on the page)

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    You might try simply hiding the other images within the group on the page so they aren't visible to the viewer:

    Code:
    <a href="images/image-1.jpg" rel="lightbox[roadtrip]"><img src="1.gif" /></a>
    <a href="images/image-2.jpg" rel="lightbox[roadtrip]" style="display:none"><img src="2.gif" /></a>
    <a href="images/image-3.jpg" rel="lightbox[roadtrip]" style="display:none"><img src="3.gif" /></a>
    The script should still see the hidden images as part of the group and cycle through them once you click on the remaining image.
    DD Admin

  3. #3
    Join Date
    Sep 2009
    Posts
    28
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    nice one! never even thought of doin that, ill give it a try. cheers

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
  •