Fancybox 2 image counter
$("a[rel='fancybox-listpage']").fancybox({ openEffect: "none", closeEffect: "none", beforeShow: function() { this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : ''); }, });