None of that will work. Lightbox gets its captions from the title attributes of the links, not the images, that's why Nile's first idea doesn't work. The second suggestion is worse, there will be no images. Instead, edit this line:
Code:
document.write('<a title="'+galleryarray[i_tem][0].replace(/^.*\/|\.[^\.]+$/g, '')+'" href="'+targetlinkdir+galleryarray[i_tem][0]+'" rel="lyteshow[vacation]"></a>');
to:
Code:
document.write('<a title="" href="'+targetlinkdir+galleryarray[i_tem][0]+'" rel="lyteshow[vacation]"></a>');
Added Later:
In an unrelated matter - You are also going to want to replace the (in lytebox.js near the top):
Code:
Array.prototype.removeDuplicates = function () { for (var i = 1; i < this.length; i++) { if (this[i][0] == this[i-1][0]) { this.splice(i,1); } } }
with:
Code:
Array.prototype.removeDuplicates = function () {for(var i = 0; i < this.length; ++i)for(var j = this.length-1; j > i; --j)if(this[i][0] == this[j][0])this.splice(j,1);};
Otherwise you will have dupes that could cause problems.
Bookmarks