Lightbox Plus Colorbox
Link in the title attribute (2 posts)

  1. shainanz
    Posted 1 year ago #

    I'm trying to get a link to appear in the overlay image's title, instead of just static text. I've found a few references to this online so I believe this is possible, but I frankly have no idea what I'm doing when it comes to JavaScript.

    In an ideal world, this link would also use JavaScript to get the print dialogue box to open when the new page is opened. A noob can dream.

    This is more or less my HTML:
    <a href="/images/mypic.jpg" rel="lightbox[mygallery]" title="Pic Title" id="mypic"><img src="/images/mypic-thumb.jpg"/>[caption]View My Pic[/caption]</a>

    This is the closet looking thing I've found, but didn't work between script tags in my header, and I'm not too sure what I'm supposed to do with it. Also, it doesn't help with my print dialogue box fantasy.

         title: function() {
                   return 'Click <a href="http://mysite.com">Here</a>';

    I am lost--any help is appreciated!


  2. lynnema
    Posted 1 year ago #

    Sorry - wrong post... My bad.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Lightbox Plus Colorbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic