Open jquery.fancybox-1.3.1.js and look for the fancybox_get_viewport
function the function should look like this:
fancybox_get_viewport = function() {
return [ $(window).width(), $(window).height(), $
(document).scrollLeft(), $(document).scrollTop() ];
},
Change it to look like this:
fancybox_get_viewport = function() {
var isFixed = wrap.css('position') === 'fixed'; // add support for
fixed positioning
return [ $(window).width(), $(window).height(), isFixed ? 0 : $
(document).scrollLeft(), isFixed ? 0 : $(document).scrollTop() ];
},
Add the following to style.css make sure these clauses load after the
jquery.fancybox-1.3.1.css file
#fancybox-wrap {
position: fixed;
}
* html #fancybox-wrap { /* IE6 */
position: absolute;
}
Now fancybox will remain in the middle of your screen
Regards
Rick