|
|
|
|
57
|
function resetScroll() {
|
57
|
function resetScroll() {
|
58
|
setUnfixed();
|
58
|
setUnfixed();
|
59
|
selfTop = obj.offset().top; //对象距离顶部高度
|
59
|
selfTop = obj.offset().top; //对象距离顶部高度
|
60
|
selfLeft = obj.offset().left + 30; //对象距离左边宽度
|
|
|
|
|
60
|
selfLeft = obj.offset().left; //对象距离左边宽度
|
61
|
outerHeight = obj.outerHeight(); //对象高度
|
61
|
outerHeight = obj.outerHeight(); //对象高度
|
62
|
outerHeight = parseFloat(outerHeight) + parseFloat(obj.css('marginBottom').replace(/auto/, 0));
|
62
|
outerHeight = parseFloat(outerHeight) + parseFloat(obj.css('marginBottom').replace(/auto/, 0));
|
63
|
outerWidth = obj.outerWidth(); //对象外宽度
|
63
|
outerWidth = obj.outerWidth(); //对象外宽度
|
64
|
//objWidth = obj.width();
|
64
|
//objWidth = obj.width();
|
65
|
objWidth = obj.outerWidth(true)+60;
|
|
|
|
|
65
|
objWidth = obj.outerWidth(true);
|
66
|
var documentHeight = $(document).height(); //文档高度
|
66
|
var documentHeight = $(document).height(); //文档高度
|
67
|
var startTop = $(opts.startTop), //开始浮动固定对象
|
67
|
var startTop = $(opts.startTop), //开始浮动固定对象
|
68
|
startBottom = $(opts.startBottom),
|
68
|
startBottom = $(opts.startBottom),
|