3*3 means 9. It is three times three in javascript. The script calls for this syntax:
The x in this case is just a delimiter not an operator as the * is.
About the image captions, I believe you mean. Edit the script here:
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+=(descriptionprefix[0]==1)? descriptionprefix[1]+(i+1) : ""
return tempcontainer
}
Replace that red line with this one:
Code:
tempcontainer+=galleryarray[i][0];
I see you are probably using spaces in your filenames. In some browsers they will get escaped and come out as %20 so, use this instead if using filenames with spaces:
Code:
tempcontainer+=unescape(galleryarray[i][0]);
Another nice twist would be to strip the extension (.jpg or .gif) or whatever:
Code:
tempcontainer+=unescape(galleryarray[i][0]).replace(/\.[^\.]*$/, '');
Bookmarks