Replace:
Code:
function getImageTitle(anchor){ //DynamicDrive.com added function that allows the caption("title") to be linked ("rev").
var ddimageTitle=anchor.getAttribute('title')
var ddimageTitleURL=(ddimageTitle!=null && ddimageTitle!="")? anchor.getAttribute('rev') : null
return ddimageTitleFinal=(ddimageTitleURL!=null && ddimageTitleURL!="")? '<a href="'+ddimageTitleURL+'" class="ddcaptionurl">'+ddimageTitle+'</a>' : ddimageTitle
};
With:
Code:
function getImageTitle(anchor){ //DynamicDrive.com added function that allows the caption("title") to be linked ("rev").
var ddimageTitle=anchor.getAttribute('title')
var ddimageTarget=anchor.target? anchor.target : null
var ddimageTitleURL=(ddimageTitle!=null && ddimageTitle!="")? anchor.getAttribute('rev') : null
return ddimageTitleFinal=(ddimageTitleURL!=null && ddimageTitleURL!="")? '<a href="'+ddimageTitleURL+'" class="ddcaptionurl"'+(ddimageTarget? 'target="'+ddimageTarget+'"' : '')+'>'+ddimageTitle+'</a>' : ddimageTitle
};
Once you do that, you can add the target to the lightbox link(s):
Code:
<a href="some.jpg" title="Google"
rel="lightbox" rev="http://www.google.com/"
target="_blank">Link Text or Thumbnail Image Tag Here</a>
And, if you like, you can still have ones without target attributes on the same page.
Bookmarks