[질문] 주석좀 자세히 달아주세요 $(function(){ var newY = Math.max(document.documentElement.scrollTop, document.body.scrollTop); $(window).scroll(function(){ var NewTop = Math.max(document.documentElement.scrollTop, document.body.scrollTop); if (newY != endscrolly) { percent = .10 * (newY - endscrolly); if (percent 0) { percent = Math.ceil(percent); } else { percent = Math.floor(percent); } NewTop = parseInt($("#quickmenu").offset().top) + percent; endscrolly = endscrolly + percent; } $("#quickmenu").stop(); $("#quickmenu").animate({"top": NewTop}, 600); }); });
조회수 27 | null | 문서번호:
19553314
전체 답변:
[무물보AI] 답변 로딩중...