Incidentally... i made some additions to your script to make it work better with Facebox. Since you included a facebox example in your instructions, ill assume its supposed to be a feature.
I found that when using instead of the built in lightbox feature, the "matte" or the opaque black overlay was only affecting a small portion of my overall page, instead of its intended effect ( making everything but the clicked image black)
So i played around with it and upgraded it.
NOTE: the Facebox script of course has to be installed for this to work
I added this selector to "facebox.css"
Code:
.black_overlay{
display: none;
position: absolute;
top:0px;
left:0px;
width: 100%;
height: 120%;
background-color: black;
z-index:99;
-moz-opacity: 0.8;
opacity:.80;
filter: alpha(opacity=80);
}
Added this to facebox.js
Code:
<div class="footer"> \
<a href="#" class="close" onclick = "document.getElementById(\'fade\').style.display=\'none\'"> \
<img src="'+this.close_image+'" title="close" class="close_image" /> \
</a> \
</div> \
Added this to ddphpalbum.js
Code:
return (showorder? '<b style="color:red">Source Order: '+albumvar.images[i][0]+'</b><br />' : '') + '<img rel="facebox" src="' + albumvar.baseurl + albumvar.images[i][1] + '" data-index="' + i +'" onclick = "document.getElementById(\'fade\').style.display=\'block\'" />' + (albumvar.images[i][3]? '<br />'+albumvar.images[i][3] : (desc)? desc : '')
},
and this extra "div" just above the facebox div in facebox.js
Code:
$.facebox.settings = {
loading_image : 'facefiles/loading.gif',
close_image : 'facefiles/closelabel.gif',
image_types : [ 'png', 'jpg', 'jpeg', 'gif' ],
facebox_html : '\
<div id="fade" class="black_overlay"></div> \
<div id="facebox" style="display:none;"> \
<div class="popup"> \
Bookmarks