s

퀵메뉴

<div id="floater2" style="position:absolute;z-index:5;">
내용
</div>
<script type="text/jscript">
<!--
// 스크립트는 반드시 스크롤될 내용 아래쪽에 넣습니다. 안그럼 오류가 발생합니다.
// 스크롤바 따라다니는 메뉴

var stmnLEFT = 21; // 스크롤메뉴의 좌측 위치
var stmnGAP1 = 112; // 페이지 헤더부분의 여백 (이보다 위로는 올라가지 않음)
var stmnGAP2 = 50; // 스크롤시 브라우저 상단과 약간 띄움. 필요없으면 0으로 세팅
var stmnBASE = 68; // 스크롤메뉴 초기 시작위치 (아무렇게나 해도 상관은 없지만 stmnGAP1과 약간 차이를 주는게 보기 좋음)
var stmnActivateSpeed = 2; // 움직임을 감지하는 속도 (숫자가 클수록 늦게 알아차림)
var stmnScrollSpeed = 1; // 스크롤되는 속도 (클수록 늦게 움직임)
var stmnTimer;

function RefreshStaticMenu() {
  var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;
  stmnStartPoint = parseInt(floater2.style.top, 10);
  stmnEndPoint = document.body.scrollTop + stmnGAP2;

  if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;
  stmnRefreshTimer = stmnActivateSpeed;

  if ( stmnStartPoint != stmnEndPoint ) {
    stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
    floater2.style.top = parseInt(floater2.style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
    stmnRefreshTimer = stmnScrollSpeed;
  }

  stmnTimer = setTimeout ("RefreshStaticMenu();", stmnRefreshTimer);
}

function InitializeStaticMenu() {
  floater2.style.top = document.body.scrollTop + stmnBASE;
  RefreshStaticMenu();
  floater2.style.left = stmnLEFT;
}
//-->
</script>
<script type="text/jscript">InitializeStaticMenu();</script>

|

댓글 1개

댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
12년 전 조회 2,746
12년 전 조회 1,230
12년 전 조회 1,251
12년 전 조회 4,633
12년 전 조회 1,676
12년 전 조회 1,829
12년 전 조회 5,690
12년 전 조회 3,431
12년 전 조회 2,329
12년 전 조회 1,480
12년 전 조회 3,666
12년 전 조회 2,689
12년 전 조회 2,404
12년 전 조회 2,034
12년 전 조회 1,716
12년 전 조회 1,719
12년 전 조회 1,469
12년 전 조회 2,589
12년 전 조회 1,866
12년 전 조회 1,538
12년 전 조회 2,621
12년 전 조회 1,799
12년 전 조회 2,420
12년 전 조회 3,634
12년 전 조회 1,423
12년 전 조회 2,381
12년 전 조회 1,234
12년 전 조회 1,723
12년 전 조회 2,297
12년 전 조회 1,932
12년 전 조회 4,748
12년 전 조회 2,855
12년 전 조회 3,026
12년 전 조회 1,398
12년 전 조회 8,719
12년 전 조회 3,529
12년 전 조회 1,617
12년 전 조회 1,478
12년 전 조회 2,867
12년 전 조회 5,546
12년 전 조회 3,605
12년 전 조회 1,531
12년 전 조회 1.4만
12년 전 조회 1,396
12년 전 조회 801
12년 전 조회 4,115
12년 전 조회 1,616
12년 전 조회 9,512
12년 전 조회 981
12년 전 조회 1,422
12년 전 조회 3,398
12년 전 조회 1,034
12년 전 조회 1,944
12년 전 조회 3,841
12년 전 조회 1,253
12년 전 조회 1,157
12년 전 조회 5,487
12년 전 조회 1,622
12년 전 조회 946
12년 전 조회 2,773
12년 전 조회 2,680
12년 전 조회 1,696
12년 전 조회 3,127
12년 전 조회 6,737
12년 전 조회 2,328
12년 전 조회 933
12년 전 조회 2,097
12년 전 조회 2,031
12년 전 조회 2,795
12년 전 조회 782
12년 전 조회 1,883
12년 전 조회 970
12년 전 조회 1,949
12년 전 조회 2,874
12년 전 조회 1,432
12년 전 조회 4,065
12년 전 조회 1만
12년 전 조회 1,299
12년 전 조회 2,632
12년 전 조회 2,323
12년 전 조회 3,177
12년 전 조회 6,202
12년 전 조회 2,816
12년 전 조회 3,158
12년 전 조회 1,159
12년 전 조회 951
12년 전 조회 2,045
12년 전 조회 6,056
12년 전 조회 1,657
12년 전 조회 4,892
12년 전 조회 1,115
12년 전 조회 4,286
12년 전 조회 1,428
13년 전 조회 1,280
13년 전 조회 1,858
13년 전 조회 1,493
13년 전 조회 761
13년 전 조회 723
13년 전 조회 2.1만
13년 전 조회 688
🐛 버그신고