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/a...p/t-30057.htmlCode: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 }



Reply With Quote
Bookmarks