Results 1 to 3 of 3

Thread: How do I stop the filename/date being displayed when hovering over the thumbnail ?

  1. #1
    Join Date
    Dec 2008
    Location
    Arrochar in Scotland
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool How do I stop the filename/date being displayed when hovering over the thumbnail ?

    1) Script Title: PHP Photo Album script

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

    3) Describe problem: I'd like to stop the filename+date displaying when you hover over the thumbnail and simply display a message 'Click thumbnail to view larger image'

    I'm sure it's really simple!! Just like me!!::

    Many thanks,

    Howard

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    I might be wrong, but try removing this in the php file:
    Code:
    if(eregi($pattern, $file)){
    		 $filedate=date ("M d, Y H:i:s", filemtime($file));
                     echo 'galleryarray[' . $curimage .']=["' . $file . '", "'.$filedate.'"];' . "\n";
                     $curimage++;
                   }

  3. #3
    Join Date
    Dec 2008
    Location
    Arrochar in Scotland
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,

    It's OK - I've figured it out ! I made the following change to one line in the 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="Click to view" />'
    tempcontainer+='</a><br />'
    tempcontainer+=(descriptionprefix[0]==1)? descriptionprefix[1]+(i+1) : ""
    return tempcontainer

    Thanks
    Howard

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
  •