Results 1 to 2 of 2

Thread: Help adding Lightbox link to separate window

  1. #1
    Join Date
    May 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help adding Lightbox link to separate window

    Could someone please help me figure out how to add a link in the Lightbox Image title area that would open in a separate window? This is for version 2.05. I saw the previous post explaining how to do it with version 2.03 but I could not find the specified code anywhere in the lightbox.js file.

    Any help would be GREATLY appreciated. This is for a portfolio and I need to be able to display the image and have the link show the webpage in a SEPARATE window and I cannot figure this out.

    Thank you in advance!

    Justin

  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

    Use this modified version of the Lightbox 2.05 script:

    Attachment 3871

    Once you're using that version, you may make a link like so:

    Code:
    <a href="images/image-1.jpg" rel="lightbox" 
    title="linked something, new window" rev="http://www.google.com::_blank"><img 
    src="images/thumb-1.jpg" width="100" height="40" alt="" /></a>
    This will also work for a grouped image. The link is dark red and the target is green. Note the separator - ::, it's only required if you want the link to have a target. If you do:

    Code:
    rev="somepage.htm"
    it will open in the same window.
    - 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
  •