锘縧astScrollY = 0; function heartBeat() { var diffY; if (document.documentElement && document.documentElement.scrollTop) diffY = document.documentElement.scrollTop; else if (document.body) diffY = document.body.scrollTop else { /*Netscape stuff*/ } percent = 0.1 * (diffY - lastScrollY); if (percent > 0) percent = Math.ceil(percent); else percent = Math.floor(percent); $(".floatDrapes").each(function () { var oldtop = parseInt($(this).css("bottom")); $(this).css("bottom", (oldtop - percent) + "px"); }); lastScrollY = lastScrollY + percent; if (lastScrollY != 0) window.setTimeout("heartBeat()", 10); } //鍏抽棴鎸夐挳 function close_drapes(obj) { $(obj).parent().parent().hide(); }