FancyBox 2 Background Issue
I'm trying to use fancybox ( http://fancyapps.com/fancybox/ ) to show an image automatically on my page, but the background (greyed-out) portion is not working. Any ideas? See example at http://www.southshoreopera.org The issue is that if you open fancybox programmatically BEFORE the DOM is ready, somehow the overlay is not appended to the body element. This : <script type="text/javascript"> $(".fancybox").fancybox({ // API options }); $(".fancybox").eq(0).trigger('click'); </script> ... will trigger fancybox on page load WITHOUT an overlay (a manual click to the link thereafter won't