Advanced Search

Results 1 to 1 of 1

Thread: using filename for thumbs, PHP Photo Album

  1. #1
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default using filename for thumbs, PHP Photo Album

    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.html
    Code:
    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
    }
    Last edited by rapdigital; 03-13-2009 at 11:51 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •