Change buildpaginate function into:
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 />'
if(descriptionprefix[0]==0)
tempcontainer+=imagepath+galleryarray[i][0];
else if(descriptionprefix[0]==1)
tempcontainer+=descriptionprefix[1]+(i+1);
else if(descriptionprefix[0]==2)
tempcontainer+='<img src="'+imagepath+galleryarray[i][0]+'">';
else
tempcontainer+='';
return tempcontainer
}
...the above changes could accpet values 0, 1 and 2 as the prefix value.
0 - Use the full URL path of the image.
1 - Use a text + the index of the image. Should show "Prefix"[n]
2 - Include a tag on the prefix. Should show <img src="">
With that said, once again, change this part (from DD's original):
Code:
//Toggle image description: descriptionprefix[0 or 1, "Text to show" (if 1)]
var descriptionprefix=[1, "Photo "]
into:
Code:
// Toggle image description: descriptionprefix[0 or 1]
// If 0, the image path is used. Use this as an example descriptoinprefix=[0];
// If 1, the text prefix value on the right is used. An example is
descriptionprefix=[1,'Prefix Text ']
// If 2, the text prefix will show an image tag plus the URL
var descriptionprefix=[2]
Hope that helps.
Bookmarks