PDA

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



howard_page
12-18-2008, 08:24 PM
1) Script Title: PHP Photo Album script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/php-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!!:: :D

Many thanks,

Howard

Snookerman
12-18-2008, 09:04 PM
I might be wrong, but try removing this in the php file:

if(eregi($pattern, $file)){
$filedate=date ("M d, Y H:i:s", filemtime($file));
echo 'galleryarray[' . $curimage .']=["' . $file . '", "'.$filedate.'"];' . "\n";
$curimage++;
}

howard_page
12-18-2008, 09:10 PM
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