I am trying to extend fancybox to allow for a new button to open the current image in a new window. I was planning on adding this via the onComplete although I can find any information in the API that explains how to get teh current image from:
'onComplete' : function(currentArray, currentIndex, currentOpts){
alert(currentArray.title);
}
Or if you can point me in the direction of some documentation on how I can use the “currentArray, currentIndex, currentOpts”
Try this (demo):
CSS (I used the right arrow icon, but change and/or move this icon whereever you want)
Script