Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Lightbox 2 link

  • 09-08-2010 01:33PM
    #1
    Closed Accounts Posts: 1,710 ✭✭✭


    Hi,

    I am setting up a gallery using Lightbox 2 and want to have a link at the bottom of each picture. This can be done handy enough but also I want the link to open up in a seperate tab. I'm trying to figure out how I can use the "_blank" tag using the example below.

    Can't figure out how this is done.
    Can I insert links in the caption?
    Yes, but you need to convert quotes and greater and less than symbols into their html entity equivalents. For example:
    <a href="images/image-4.jpg" rel="lightbox" title="<a href="link.html">my link</a>">Image</a>


Comments

  • Closed Accounts Posts: 18,163 ✭✭✭✭Liam Byrne


    <a href="images/image-4.jpg" rel="lightbox" [b]target="_blank"[/b].......
    
    

    Not really a good idea, though, as all of the navigation elements of the original site will be missing. That's the main reason for using something like lightbox in the first place - to avoid opening a new window.


  • Closed Accounts Posts: 1,710 ✭✭✭RoadKillTs


    Hi Liam,

    Thanks but that doesn't work. When the image "comes out" I have a link at the bottom of the image and when clicked brings the user to a specified site but I just can't figure out how to get it to open the site in a new tab.


  • Closed Accounts Posts: 18,163 ✭✭✭✭Liam Byrne


    RoadKillTs wrote: »
    Hi Liam,

    Thanks but that doesn't work. When the image "comes out" I have a link at the bottom of the image and when clicked brings the user to a specified site but I just can't figure out how to get it to open the site in a new tab.

    Where does the text for that link come from ?


  • Closed Accounts Posts: 1,710 ✭✭✭RoadKillTs


    Where does the text for that link come from ?

    Hi Liam,

    It's from the lightbox 2 website in the Support section.

    Link

    They are saying I need to encode the html here


  • Closed Accounts Posts: 18,163 ✭✭✭✭Liam Byrne


    <a href="images/image-4.jpg" rel="lightbox" title="&lt;a href=&quot;link.html&quot;
    [b] target=&quot;_blank&quot;[/b]
    &gt;my link&lt;/a&gt;">Image</a>
    


  • Advertisement
  • Closed Accounts Posts: 1,710 ✭✭✭RoadKillTs


    Thanks a million! :)


Advertisement