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,674
12년 전 조회 1,164
12년 전 조회 1,195
12년 전 조회 4,559
12년 전 조회 1,599
12년 전 조회 1,750
12년 전 조회 5,627
12년 전 조회 3,369
12년 전 조회 2,259
12년 전 조회 1,406
12년 전 조회 3,599
12년 전 조회 2,620
12년 전 조회 2,326
12년 전 조회 1,948
12년 전 조회 1,645
12년 전 조회 1,637
12년 전 조회 1,394
12년 전 조회 2,502
12년 전 조회 1,788
12년 전 조회 1,459
12년 전 조회 2,534
12년 전 조회 1,721
12년 전 조회 2,337
12년 전 조회 3,564
12년 전 조회 1,346
12년 전 조회 2,303
12년 전 조회 1,151
12년 전 조회 1,638
12년 전 조회 2,220
12년 전 조회 1,860
12년 전 조회 4,673
12년 전 조회 2,781
12년 전 조회 2,946
12년 전 조회 1,328
12년 전 조회 8,646
12년 전 조회 3,447
12년 전 조회 1,541
12년 전 조회 1,390
12년 전 조회 2,796
12년 전 조회 5,472
12년 전 조회 3,522
12년 전 조회 1,442
12년 전 조회 1.4만
12년 전 조회 1,303
12년 전 조회 717
12년 전 조회 4,037
12년 전 조회 1,552
12년 전 조회 9,461
12년 전 조회 888
12년 전 조회 1,344
12년 전 조회 3,326
12년 전 조회 954
12년 전 조회 1,872
12년 전 조회 3,769
12년 전 조회 1,183
12년 전 조회 1,074
12년 전 조회 5,410
12년 전 조회 1,539
12년 전 조회 864
12년 전 조회 2,749
12년 전 조회 2,589
12년 전 조회 1,614
12년 전 조회 3,031
12년 전 조회 6,652
12년 전 조회 2,249
12년 전 조회 839
12년 전 조회 2,017
12년 전 조회 1,963
12년 전 조회 2,710
12년 전 조회 713
12년 전 조회 1,799
12년 전 조회 887
12년 전 조회 1,870
12년 전 조회 2,789
12년 전 조회 1,350
12년 전 조회 3,981
12년 전 조회 1만
12년 전 조회 1,216
12년 전 조회 2,546
12년 전 조회 2,225
12년 전 조회 3,091
12년 전 조회 6,125
12년 전 조회 2,740
12년 전 조회 3,074
12년 전 조회 1,073
12년 전 조회 870
12년 전 조회 1,959
12년 전 조회 5,964
12년 전 조회 1,577
12년 전 조회 4,813
12년 전 조회 1,036
12년 전 조회 4,204
12년 전 조회 1,349
12년 전 조회 1,199
12년 전 조회 1,786
12년 전 조회 1,415
12년 전 조회 678
12년 전 조회 649
12년 전 조회 2.1만
12년 전 조회 608
🐛 버그신고