PDA

View Full Version : PHP photo Album



swtrans
07-31-2008, 07:32 PM
1) Script Title:

PHP Photo Album

2) Script URL (on DD):

http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm

3) Describe problem:

I love this script but two things would make it even better:

#1 when you click an image to enlarge it, the background on the pop up window is white ... I tried adding bgcolor=black but that didn't help

#2 also on the pop up window, is there a way to make sure the pic is centered from the left and right

Thanks!

swtrans
07-31-2008, 07:54 PM
I found this code on an unrelated topic, works well (replace this function)

function popuplinkfunc(imgsrc){
if (popupsetting[0]==1){
var desc=imgsrc.href.replace(/^.*\/([^\.]+)\..*/,'$1');
var popwin=open('', "popwin", popupsetting[1]);
popwin.document.write('<title>'+desc+
'<\/title><body style="margin:0;padding:0;font:85% sans-serif;text-align:'+
'center;overflow:auto;background-color:#0d576d;color:white;"><img title="'+
desc+'" alt="Larger Image" style="margin:2px 0;" src="'+imgsrc.href+'"><br>'+desc);
popwin.document.close();
popwin.focus();
return false;
}
else
return true;
}