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,590
12년 전 조회 1,079
12년 전 조회 1,104
12년 전 조회 4,468
12년 전 조회 1,521
12년 전 조회 1,661
12년 전 조회 5,525
12년 전 조회 3,287
12년 전 조회 2,166
12년 전 조회 1,322
12년 전 조회 3,511
12년 전 조회 2,546
12년 전 조회 2,252
12년 전 조회 1,869
12년 전 조회 1,563
12년 전 조회 1,557
12년 전 조회 1,311
12년 전 조회 2,428
12년 전 조회 1,701
12년 전 조회 1,378
12년 전 조회 2,462
12년 전 조회 1,639
12년 전 조회 2,250
12년 전 조회 3,471
12년 전 조회 1,262
12년 전 조회 2,229
12년 전 조회 1,062
12년 전 조회 1,551
12년 전 조회 2,143
12년 전 조회 1,781
12년 전 조회 4,587
12년 전 조회 2,687
12년 전 조회 2,859
12년 전 조회 1,254
12년 전 조회 8,562
12년 전 조회 3,359
12년 전 조회 1,464
12년 전 조회 1,311
12년 전 조회 2,713
12년 전 조회 5,388
12년 전 조회 3,440
12년 전 조회 1,368
12년 전 조회 1.4만
12년 전 조회 1,228
12년 전 조회 637
12년 전 조회 3,958
12년 전 조회 1,483
12년 전 조회 9,376
12년 전 조회 810
12년 전 조회 1,265
12년 전 조회 3,243
12년 전 조회 872
12년 전 조회 1,795
12년 전 조회 3,670
12년 전 조회 1,098
12년 전 조회 985
12년 전 조회 5,328
12년 전 조회 1,454
12년 전 조회 785
12년 전 조회 2,740
12년 전 조회 2,513
12년 전 조회 1,530
12년 전 조회 2,966
12년 전 조회 6,571
12년 전 조회 2,161
12년 전 조회 764
12년 전 조회 1,928
12년 전 조회 1,883
12년 전 조회 2,630
12년 전 조회 624
12년 전 조회 1,719
12년 전 조회 797
12년 전 조회 1,798
12년 전 조회 2,711
12년 전 조회 1,270
12년 전 조회 3,903
12년 전 조회 9,988
12년 전 조회 1,142
12년 전 조회 2,470
12년 전 조회 2,146
12년 전 조회 3,009
12년 전 조회 6,043
12년 전 조회 2,666
12년 전 조회 2,988
12년 전 조회 987
12년 전 조회 787
12년 전 조회 1,878
12년 전 조회 5,887
12년 전 조회 1,494
12년 전 조회 4,728
12년 전 조회 954
12년 전 조회 4,121
12년 전 조회 1,266
12년 전 조회 1,127
12년 전 조회 1,704
12년 전 조회 1,340
12년 전 조회 590
12년 전 조회 565
12년 전 조회 2만
12년 전 조회 529
🐛 버그신고