The background color of what? The margins of what? An image displayed by itself in a browser pop up window has neither of these.
A popular modification to this script is to use it with lightbox 2.03:
http://www.dynamicdrive.com/dynamici...box2/index.htm
To do so, install the lightbox files as instructed on the demo page. Then add this to the PHP Photo Album script (additions red):
Code:
if (gsortorder=="asc" || gsortorder=="desc")
galleryarray.sort(sortbydate)
function buildbox(){
for (var i = 0; i < galleryarray.length; i++){
var imagecompletepath=(targetlinkdir!="")? targetlinkdir+galleryarray[i][0] : imagepath+galleryarray[i][0];
document.write('<a style="display:none;" title="Elvis Detail" href="'+imagecompletepath+'" rel="lightbox[joe]"><\/a>')
}
}
buildbox();
var totalslots=dimension.split("x")[0]*dimension.split("x")[1]
function buildimage(i){
var imagecompletepath=(targetlinkdir!="")? targetlinkdir+galleryarray[i][0] : imagepath+galleryarray[i][0]
var tempcontainer='<a href="'+imagecompletepath+'" target="'+href_target+'" rel="lightbox[joe]" onClick="return popuplinkfunc(this)">'
tempcontainer+='<img src="'+imagepath+galleryarray[i][0]+'" title="'+galleryarray[i][0]+' ['+galleryarray[i][1]+']" />'
tempcontainer+='</a><br />'
tempcontainer+=(descriptionprefix[0]==1)? descriptionprefix[1]+(i+1) : ""
return tempcontainer
}
and change this in the PHP Photo Album script:
Code:
function popuplinkfunc(imgsrc){
if (popupsetting[0]==1){
var popwin=open(imgsrc.href, "popwin", popupsetting[1])
popwin.focus()
return false
}
else
return true
}
to:
Code:
function popuplinkfunc(imgsrc){
myLightbox.start(imgsrc); return false;
}
Bookmarks