由于IE8不支持动态表达式。
// simulate fixed position
$.each([lyr1,lyr2,lyr3], function(i,o) {
var s = o[0].style;
s.position = 'absolute';
if (i < 2) {
full ? s.height=(Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:opts.quirksmodeOffsetHack)) + "px"
: s.height = o[0].parentNode.offsetHeight + "px";
full ? s.width=(jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth) + "px"
: s.width = o[0].parentNode.offsetWidth + "px";
if (fixL) s.left = fixL;
if (fixT) s.top = fixT;
}
else if (opts.centerY) {
if (full) s.top = ((document.documentElement.clientHeight || document.body.clientHeight) / 2 - (o[0].offsetHeight / 2) + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop)) + "px";
s.marginTop = 0;
}
else if (!opts.centerY && full) {
var top = (opts.css && opts.css.top) ? parseInt(opts.css.top) : 0;
s.top = ((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + top) + "px";
}
});