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,730
12년 전 조회 1,219
12년 전 조회 1,237
12년 전 조회 4,613
12년 전 조회 1,658
12년 전 조회 1,806
12년 전 조회 5,672
12년 전 조회 3,418
12년 전 조회 2,316
12년 전 조회 1,465
12년 전 조회 3,652
12년 전 조회 2,676
12년 전 조회 2,387
12년 전 조회 2,008
12년 전 조회 1,703
12년 전 조회 1,702
12년 전 조회 1,462
12년 전 조회 2,561
12년 전 조회 1,842
12년 전 조회 1,522
12년 전 조회 2,609
12년 전 조회 1,771
12년 전 조회 2,405
12년 전 조회 3,621
12년 전 조회 1,399
12년 전 조회 2,368
12년 전 조회 1,214
12년 전 조회 1,701
12년 전 조회 2,279
12년 전 조회 1,912
12년 전 조회 4,736
12년 전 조회 2,829
12년 전 조회 3,007
12년 전 조회 1,376
12년 전 조회 8,708
12년 전 조회 3,513
12년 전 조회 1,600
12년 전 조회 1,455
12년 전 조회 2,851
12년 전 조회 5,532
12년 전 조회 3,581
12년 전 조회 1,505
12년 전 조회 1.4만
12년 전 조회 1,375
12년 전 조회 783
12년 전 조회 4,096
12년 전 조회 1,603
12년 전 조회 9,499
12년 전 조회 957
12년 전 조회 1,405
12년 전 조회 3,384
12년 전 조회 1,013
12년 전 조회 1,926
12년 전 조회 3,826
12년 전 조회 1,237
12년 전 조회 1,140
12년 전 조회 5,471
12년 전 조회 1,598
12년 전 조회 928
12년 전 조회 2,764
12년 전 조회 2,656
12년 전 조회 1,671
12년 전 조회 3,107
12년 전 조회 6,713
12년 전 조회 2,308
12년 전 조회 912
12년 전 조회 2,074
12년 전 조회 2,023
12년 전 조회 2,776
12년 전 조회 763
12년 전 조회 1,864
12년 전 조회 953
12년 전 조회 1,928
12년 전 조회 2,851
12년 전 조회 1,410
12년 전 조회 4,042
12년 전 조회 1만
12년 전 조회 1,283
12년 전 조회 2,612
12년 전 조회 2,298
12년 전 조회 3,156
12년 전 조회 6,185
12년 전 조회 2,802
12년 전 조회 3,142
12년 전 조회 1,140
12년 전 조회 925
12년 전 조회 2,024
12년 전 조회 6,038
12년 전 조회 1,638
12년 전 조회 4,871
12년 전 조회 1,105
12년 전 조회 4,274
12년 전 조회 1,413
12년 전 조회 1,256
12년 전 조회 1,844
12년 전 조회 1,476
13년 전 조회 743
13년 전 조회 706
13년 전 조회 2.1만
13년 전 조회 671
🐛 버그신고