Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Lightbox Viewer

  1. #1
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default Lightbox Viewer

    1) Script Title: Lightbox Viewer

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

    3) Describe problem: Hey,
    I'd like to know if it is possible to have the lightbox showing from a text link. As shown on DD, all the thumbnails need to be placed to be able to show all in a roadtrip. I'd like to place a textlink (f.ex. 'portfolio'), and when you click on it, one image comes up with the possibility to go on a roadtrip (prev-next).

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

    Default

    I believe what you can do physically define the text links that point to their enlarged image and that belong in the same group, but "hide" all but the first link. For example:

    Code:
    <a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
    <a href="images/image-2.jpg" rel="lightbox[roadtrip]" style="display:none">image #2</a>
    <a href="images/image-3.jpg" rel="lightbox[roadtrip]" style="display:none">image #3</a>
    Untested, but worth a shot.

  3. #3
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default

    Thanks a lot !
    As I work with a restricted computer, can anyone please test if this is useable in IE and Firefox, old and new browsers ?

  4. #4
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default

    I have two textlinks, one next to the other, and I want them to display two different roadshows.
    How can that be done, as now, the second textlink follows the roadshow of the first textlink.

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

    Default

    Quote Originally Posted by chechu View Post
    I have two textlinks, one next to the other, and I want them to display two different roadshows.
    How can that be done, as now, the second textlink follows the roadshow of the first textlink.
    Theoretically, you'd have something like this then:

    Code:
    <a href="images/image-1.jpg" rel="lightbox[roadtrip]">image 1a</a>
    <a href="images/image-2.jpg" rel="lightbox[roadtrip]" style="display:none">image 1b</a>
    <a href="images/image-3.jpg" rel="lightbox[roadtrip]" style="display:none">image 1c</a>
    
    <a href="images/image-1.jpg" rel="lightbox[roadtrip2]">image 2a</a>
    <a href="images/image-2.jpg" rel="lightbox[roadtrip2]" style="display:none">image 2b</a>
    <a href="images/image-3.jpg" rel="lightbox[roadtrip2]" style="display:none">image 2c</a>
    The key is just to use a different element name for rel="lightbox[roadtrip2]" for each group of links.
    Last edited by jscheuer1; 12-15-2007 at 09:54 AM. Reason: spelling

  6. #6
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

  7. #7
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default

    How can I get rid of "image 2 of 17" on the bottom of every image ?
    Also, there is a white area on the bottom; how do I put that black also ?
    Please go to http://www.cecicasariego.com and click on the botom left (portfolio) on 'portraits' to see what I mean.
    Thanks !

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

    Default

    Quote Originally Posted by chechu View Post
    How can I get rid of "image 2 of 17" on the bottom of every image ?
    Also, there is a white area on the bottom; how do I put that black also ?
    Please go to http://www.cecicasariego.com and click on the botom left (portfolio) on 'portraits' to see what I mean.
    Thanks !
    Well, the line:

    Code:
    Element.setInnerHTML( 'numberDisplay', "Image " + eval(activeImage + 1) + " of " + imageArray.length);
    inside the .js file controls the showing of "image x of total". Commenting that line out should do the trick.

    Most of the lightbox's look should be controlled by lightbox.css. Just glancing over that file, it would seem the pertinent line is this:

    Code:
    #outerImageContainer{
    	position: relative;
    	background-color: #fff;
    	width: 250px;
    	height: 250px;
    	margin: 0 auto;
    	}
    I may be wrong though. Try experimenting a bit with the .css file.

  9. #9
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default

    It worked out fine, thanks.
    I think the problem with the white bg at he bottom is when you need to scroll down to see the text below the image. Go to http://www.cecicasariego.com and click on portraits (portfolio), and you'll see that the smaller imgs do not have the white line below, as you don not need to scroll down. Is there a solution for that ?
    Last edited by chechu; 12-18-2007 at 01:16 PM.

  10. #10
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hiya,
    newbie here in forums. was playing with the lightbox and was wondering if it's possible to have the next and previous buttons appear permanently without the mouse rolling over it?

    also, does anyone know how to add thumbnails inside the lightbox itself, like those found in firefox theme download pages?

    any help would be greatly appreciated.

    thanks.

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
  •