Index: lightbox.js =================================================================== --- lightbox.js (revision 32) +++ lightbox.js (working copy) @@ -215,12 +215,12 @@ if ((imageLink.rel == 'lightbox')){ // if image is NOT part of a set, add single image to imageArray - this.imageArray.push([imageLink.href, imageLink.title]); + this.imageArray.push([imageLink.href, imageLink.title, imageLink.style.backgroundColor]); } else { // if image is part of a set.. this.imageArray = $$(imageLink.tagName + '[href][rel="' + imageLink.rel + '"]'). - collect(function(anchor){ return [anchor.href, anchor.title]; }). + collect(function(anchor){ return [anchor.href, anchor.title, anchor.style.backgroundColor]; }). uniq(); while (this.imageArray[imageNum][0] != imageLink.href) { imageNum++; } @@ -261,6 +261,7 @@ imgPreloader.onload = (function(){ this.lightboxImage.src = this.imageArray[this.activeImage][0]; this.resizeImageContainer(imgPreloader.width, imgPreloader.height); + this.overlay.style.backgroundColor = this.imageArray[this.activeImage][2]; }).bind(this); imgPreloader.src = this.imageArray[this.activeImage][0]; }, @@ -494,4 +495,4 @@ } }