Parameters built into fancyBox v1 will not work if they are not built into fancyBox2. And according to the fancyBox v2 documentation , there is no such option overlayColor
.
My suggestion is to try changing the background
color in the jquery.fancybox.css
file to #fancybox-overlay
.
#fancybox-overlay { position: absolute; top: 0; left: 0; overflow: hidden; display: none; z-index: 1001; background: #000; }
EDIT based on comments:
Technically the correct answer: you cannot set the overlayColor
parameter because the new version will not accept this deprecated parameter.
However, if you want to edit the plugin, this should do it ...
around line 1308
jquery.fancybox.js
you will see overlay options.
opts = $.extend(true, { speedIn : 'fast', closeClick : true, opacity : 1, css : { background: 'black' // <-- this one } }, opts); this.overlay = $('<div id="fancybox-overlay"></div>').css(opts.css).appendTo('body');
source share