• 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.

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

    I am lost–any help is appreciated!

    http://wordpress.org/plugins/lightbox-plus/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Link in the title attribute’ is closed to new replies.