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,614
12년 전 조회 1,102
12년 전 조회 1,127
12년 전 조회 4,498
12년 전 조회 1,545
12년 전 조회 1,689
12년 전 조회 5,551
12년 전 조회 3,309
12년 전 조회 2,186
12년 전 조회 1,346
12년 전 조회 3,533
12년 전 조회 2,574
12년 전 조회 2,265
12년 전 조회 1,886
12년 전 조회 1,588
12년 전 조회 1,588
12년 전 조회 1,334
12년 전 조회 2,450
12년 전 조회 1,724
12년 전 조회 1,402
12년 전 조회 2,479
12년 전 조회 1,658
12년 전 조회 2,276
12년 전 조회 3,497
12년 전 조회 1,282
12년 전 조회 2,252
12년 전 조회 1,089
12년 전 조회 1,575
12년 전 조회 2,162
12년 전 조회 1,803
12년 전 조회 4,609
12년 전 조회 2,710
12년 전 조회 2,886
12년 전 조회 1,271
12년 전 조회 8,584
12년 전 조회 3,377
12년 전 조회 1,482
12년 전 조회 1,328
12년 전 조회 2,736
12년 전 조회 5,410
12년 전 조회 3,462
12년 전 조회 1,383
12년 전 조회 1.4만
12년 전 조회 1,249
12년 전 조회 655
12년 전 조회 3,978
12년 전 조회 1,502
12년 전 조회 9,396
12년 전 조회 829
12년 전 조회 1,286
12년 전 조회 3,261
12년 전 조회 890
12년 전 조회 1,807
12년 전 조회 3,699
12년 전 조회 1,119
12년 전 조회 1,006
12년 전 조회 5,344
12년 전 조회 1,477
12년 전 조회 801
12년 전 조회 2,741
12년 전 조회 2,531
12년 전 조회 1,549
12년 전 조회 2,980
12년 전 조회 6,595
12년 전 조회 2,187
12년 전 조회 784
12년 전 조회 1,951
12년 전 조회 1,901
12년 전 조회 2,647
12년 전 조회 643
12년 전 조회 1,734
12년 전 조회 814
12년 전 조회 1,813
12년 전 조회 2,729
12년 전 조회 1,288
12년 전 조회 3,921
12년 전 조회 1만
12년 전 조회 1,158
12년 전 조회 2,490
12년 전 조회 2,160
12년 전 조회 3,024
12년 전 조회 6,066
12년 전 조회 2,683
12년 전 조회 3,004
12년 전 조회 1,014
12년 전 조회 809
12년 전 조회 1,890
12년 전 조회 5,902
12년 전 조회 1,511
12년 전 조회 4,742
12년 전 조회 972
12년 전 조회 4,140
12년 전 조회 1,285
12년 전 조회 1,143
12년 전 조회 1,723
12년 전 조회 1,358
12년 전 조회 606
12년 전 조회 577
12년 전 조회 2만
12년 전 조회 542
🐛 버그신고