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,637
12년 전 조회 1,117
12년 전 조회 1,145
12년 전 조회 4,519
12년 전 조회 1,559
12년 전 조회 1,707
12년 전 조회 5,571
12년 전 조회 3,329
12년 전 조회 2,205
12년 전 조회 1,371
12년 전 조회 3,556
12년 전 조회 2,585
12년 전 조회 2,284
12년 전 조회 1,903
12년 전 조회 1,607
12년 전 조회 1,598
12년 전 조회 1,350
12년 전 조회 2,464
12년 전 조회 1,735
12년 전 조회 1,423
12년 전 조회 2,495
12년 전 조회 1,680
12년 전 조회 2,296
12년 전 조회 3,516
12년 전 조회 1,302
12년 전 조회 2,270
12년 전 조회 1,112
12년 전 조회 1,593
12년 전 조회 2,182
12년 전 조회 1,823
12년 전 조회 4,628
12년 전 조회 2,728
12년 전 조회 2,904
12년 전 조회 1,292
12년 전 조회 8,597
12년 전 조회 3,400
12년 전 조회 1,496
12년 전 조회 1,348
12년 전 조회 2,750
12년 전 조회 5,427
12년 전 조회 3,474
12년 전 조회 1,399
12년 전 조회 1.4만
12년 전 조회 1,262
12년 전 조회 673
12년 전 조회 3,995
12년 전 조회 1,518
12년 전 조회 9,407
12년 전 조회 843
12년 전 조회 1,305
12년 전 조회 3,276
12년 전 조회 910
12년 전 조회 1,823
12년 전 조회 3,724
12년 전 조회 1,135
12년 전 조회 1,019
12년 전 조회 5,368
12년 전 조회 1,499
12년 전 조회 818
12년 전 조회 2,743
12년 전 조회 2,549
12년 전 조회 1,569
12년 전 조회 2,997
12년 전 조회 6,607
12년 전 조회 2,204
12년 전 조회 799
12년 전 조회 1,964
12년 전 조회 1,913
12년 전 조회 2,672
12년 전 조회 665
12년 전 조회 1,749
12년 전 조회 833
12년 전 조회 1,829
12년 전 조회 2,749
12년 전 조회 1,303
12년 전 조회 3,937
12년 전 조회 1만
12년 전 조회 1,171
12년 전 조회 2,507
12년 전 조회 2,180
12년 전 조회 3,048
12년 전 조회 6,092
12년 전 조회 2,702
12년 전 조회 3,023
12년 전 조회 1,036
12년 전 조회 828
12년 전 조회 1,913
12년 전 조회 5,927
12년 전 조회 1,532
12년 전 조회 4,761
12년 전 조회 990
12년 전 조회 4,158
12년 전 조회 1,309
12년 전 조회 1,165
12년 전 조회 1,740
12년 전 조회 1,371
12년 전 조회 631
12년 전 조회 594
12년 전 조회 2만
12년 전 조회 562
🐛 버그신고