PageSourceSearch

https://gusungacademy.com/js/scroll_oldie.js

js gusungacademy.com collected 2026-10-08 23:29:54 UTC 1,210 bytes, 30 lines download raw bytes

1// 원본출처 http://blog.bits.kr/90 - 어떤 용도로도 자유로운 사용가능. 수정/배포도 마음대로..
2// 수정 지운아빠 2013-04-30
3$(function(){
4    var $win = $(window);
5    var top = $(window).scrollTop(); // 현재 스크롤바의 위치값을 반환합니다.
6
7    /*사용자 설정 값 시작*/
8    var speed          = 1000;     // 따라다닐 속도 : "slow", "normal", or "fast" or numeric(단위:msec)
9    var easing         = 'linear'; // 따라다니는 방법 기본 두가지 linear, swing
10    var $layer         = $('#stv_list'); // 레이어 셀렉팅
11    var layerTopOffset = 0;   // 레이어 높이 상한선, 단위:px
12    $layer.css('position', 'absolute');
13    /*사용자 설정 값 끝*/
14
15    // 스크롤 바를 내린 상태에서 리프레시 했을 경우를 위해
16    if (top > 0 )
17        $win.scrollTop(layerTopOffset+top);
18    else
19        $win.scrollTop(0);
20
21    //스크롤이벤트가 발생하면
22    $(window).scroll(function(){
23        yPosition = $win.scrollTop() - 123;
24        if (yPosition < 0)
25        {
26            yPosition = 0;
27        }
28        $layer.animate({"top":yPosition }, {duration:speed, easing:easing, queue:false});
29    });
30});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.