Results 1 to 4 of 4

Thread: How to open Lightbox with an image not in the gallery

  1. #1
    Join Date
    Apr 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to open Lightbox with an image not in the gallery

    1) Script Title: Lightbox 2.03

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

    3) Describe problem:
    Besides clicking on thumbnail images to launch a Lightbox gallery, I'd like to use a graphical button to launch Lightbox. But when I use the rel="lightbox[something]" on the button, it adds 1 to the image count and it's confusing for the user. Advice much appreciated!

    Work in progress page here:
    http://www.billoneil.com/eyecandynew/gallery.html

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I don't know why Lokesh dropped the remove duplicates functionality from v2.04 or if he didn't and you took it out. But, v2.03a has it:

    http://www.dynamicdrive.com/dynamici...js/lightbox.js

    Try using it. It should take care of the problem automatically.

    You may have to switch to the entire 2.03a package:

    http://www.dynamicdrive.com/dynamici...box2/index.htm
    Last edited by jscheuer1; 04-30-2008 at 04:38 PM. Reason: add info
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Apr 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking

    Worked perfectly! Thanks!!!

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I don't know if you will get back here or not, but if you do - or if someone else comes across this, you really need to downgrade to the entire 2.03a package, as some browsers will not work well with just the 2.03a lightbox.js running with all of the other 2.04 support files.

    And, further - after looking over 2.04 a bit, it looks like it does have a method to prevent duplicates, but it doesn't appear to work, and there are some other bugs or buggish things about it.

    So, if 2.04 worked as intended, you probably could have just changed the titles on your image buttons' links to match the others in their sets, and then given the linked image itself a different title, ex:

    Code:
    <a href="images/blinde-1.jpg" rel="lightbox[blinde]" title="Blinde"><img title="Launch Blinde gallery" src="images/btn_gallery.gif" alt="Launch Blinde gallery" width="92" height="92" border="0" /></a>
    But it doesn't appear to work, so for now I think I will advise people interested in this feature to downgrade to the full 2.03a package.
    Last edited by jscheuer1; 05-01-2008 at 08:07 AM. Reason: add info
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •