Without seeing your page I cannot be sure if this will do it but, from the looks of what you are describing it will. It has helped get rid of duplicate images in other non-standard lightbox 2.0 implementations. OK, look for this in the lightbox.js file (around line 118):
Code:
// -----------------------------------------------------------------------------------
//
// Extending built-in Array object
// - array.removeDuplicates()
// - array.empty()
//
Array.prototype.removeDuplicates = function () {
for(i = 1; i < this.length; i++){
if(this[i][0] == this[i-1][0]){
this.splice(i,1);
}
}
}
Change it to this:
Code:
// -----------------------------------------------------------------------------------
//
// Extending built-in Array object
// - array.removeDuplicates()
// - array.empty()
//
Array.prototype.removeDuplicates = function () {
for(i = 0; i < this.length; i++){
for (var i_tem = 0; i_tem < this.length; i_tem++)
if(this[i][0] == this[i_tem][0]&&i!==i_tem){
this.splice(i_tem,1);
}
}
}
If this doesn't work for you, perhaps you are linking to two identical image files with different names or there could be another problem.
Bookmarks