The name of the picture is the second default fall back. That deserves some explanation. Lets say you have an entry in the slideshow's imagearray:
Code:
["small.jpg", "large.jpg"],
Slimbox will show the large.jpg, and the description will be:
If the entry in the imagearray is:
Code:
["small.jpg", "large.jpg", "", "My big Image"],
Slimbox will show:
My big Image
Image 2 of 4
And if the slideshow is set to show descriptions, My big Image will also be the description in the slideshow.
But if you have:
Code:
["small.jpg", "large.jpg", "", "Click for my big Image", "My big Image"],
Slimbox will still show:
My big Image
Image 2 of 4
But the slideshow will use, Click for my big Image.
OK, that's the description part. Now for the Image 2 of 4 part. That's controlled by slimbox. Using a text only editor like NotePad, look inside the ufadeload_fn.js script near the end:
Code:
. . . }
});
gal.setting.syncapproved = links.length === gal.setting.imagearray.length;
$.slimbox(links, index, {loop: options.loop /* , Aditional Options */ });
e.preventDefault();
}
});
}
return this.selector? this : $;};
})(jQuery);
Let's zoom in on that line:
Code:
$.slimbox(links, index, {loop: options.loop /* , Aditional Options */ });
The green part is a comment. One of slimbox's options is counterText (from http://www.digitalia.be/software/slimbox2#usage):
counterText: Text value; allows you to customize, translate or disable the counter text which appears in the captions when multiple images are shown. Inside the text, {x} will be replaced by the current image index, and {y} will be replaced by the total number of images. Set it to false (boolean value, without quotes) or "" to disable the counter display. Default is "Image {x} of {y}".
So you can make that line:
Code:
$.slimbox(links, index, {loop: options.loop, counterText: 'Pic #{x} out of {y} pics' /* , Aditional Options */ });
And now instead of:
My big Image
Image 2 of 4
Slimbox will show:
My big Image
Pic #2 out of 4 pics
Bookmarks