View Full Version : using filename for thumbs, PHP Photo Album

03-13-2009, 11:43 AM
1) Script Title: PHP Photo Album

2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...photoalbum.htm

3) Describe problem: Hi guys This seems so simple but I just cant get it to work. Im trying to use the filename as the caption under the thumbnail.

I found the solution but for others http://www.dynamicdrive.com/forums/archive/index.php/t-30057.html
function buildimage(i){
var imagecompletepath=(targetlinkdir!="")? targetlinkdir+galleryarray[i][0] : imagepath+galleryarray[i][0]
var tempcontainer='<a href="'+imagecompletepath+'" target="'+href_target+'" onClick="return popuplinkfunc(this)">'
tempcontainer+='<img src="'+imagepath+galleryarray[i][0]+'" title="'+galleryarray[i][0]+' ['+galleryarray[i][1]+']" />'
tempcontainer+='</a><br />'
tempcontainer+=galleryarray [i][0];
return tempcontainer