Hey guys,
I am trying to add an image index to the galleriffic plugin so it will say picture 2 of 11 etc. Like in example 5 off the galleriffic package but so far to no prevail.
Has anyone else managed to do this?
I can see that there is a div in example 5
<div class="photo-index"></div>
and this js
onSlideChange: function(prevIndex, nextIndex) {
// 'this' refers to the gallery, which is an extension of $('#thumbs')
this.find('ul.thumbs').children()
.eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
.eq(nextIndex).fadeTo('fast', 1.0);
// Update the photo index display
this.$captionContainer.find('div.photo-index')
.html('Photo '+ (nextIndex+1) +' of '+ this.data.length);
},
but adding this in doesn't seem to render anything.
Any thoughts,
Alex