I recently encountered an issue with a FancyBox image gallery on my webpage. I wanted to add a watermark to the gallery items, so I followed an example from the FancyBox page at http://jsfiddle.net/w5gQS/.
beforeShow: function () { $('<div class="watermark"></div>').prependTo( $.fancybox.inner );
However, this resulted in the watermark div being added to all FancyBox elements, not just the gallery items.
My question: I am wondering if there is a way to specifically add the watermark only to the gallery items. If so, how can this be achieved in a clean and efficient manner? Any suggestions or solutions would be greatly appreciated.
P.S. I am using FancyBox v2.1.5
Best regards