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,555
12년 전 조회 1,051
12년 전 조회 1,072
12년 전 조회 4,432
12년 전 조회 1,486
12년 전 조회 1,626
12년 전 조회 5,485
12년 전 조회 3,261
12년 전 조회 2,130
12년 전 조회 1,293
12년 전 조회 3,481
12년 전 조회 2,510
12년 전 조회 2,220
12년 전 조회 1,836
12년 전 조회 1,530
12년 전 조회 1,522
12년 전 조회 1,277
12년 전 조회 2,393
12년 전 조회 1,666
12년 전 조회 1,340
12년 전 조회 2,428
12년 전 조회 1,605
12년 전 조회 2,217
12년 전 조회 3,436
12년 전 조회 1,220
12년 전 조회 2,197
12년 전 조회 1,033
12년 전 조회 1,517
12년 전 조회 2,110
12년 전 조회 1,740
12년 전 조회 4,556
12년 전 조회 2,654
12년 전 조회 2,820
12년 전 조회 1,223
12년 전 조회 8,534
12년 전 조회 3,330
12년 전 조회 1,428
12년 전 조회 1,279
12년 전 조회 2,677
12년 전 조회 5,356
12년 전 조회 3,408
12년 전 조회 1,334
12년 전 조회 1.3만
12년 전 조회 1,194
12년 전 조회 603
12년 전 조회 3,921
12년 전 조회 1,461
12년 전 조회 9,360
12년 전 조회 778
12년 전 조회 1,232
12년 전 조회 3,214
12년 전 조회 842
12년 전 조회 1,764
12년 전 조회 3,635
12년 전 조회 1,065
12년 전 조회 949
12년 전 조회 5,294
12년 전 조회 1,423
12년 전 조회 750
12년 전 조회 2,738
12년 전 조회 2,476
12년 전 조회 1,497
12년 전 조회 2,931
12년 전 조회 6,538
12년 전 조회 2,132
12년 전 조회 734
12년 전 조회 1,898
12년 전 조회 1,853
12년 전 조회 2,598
12년 전 조회 586
12년 전 조회 1,683
12년 전 조회 765
12년 전 조회 1,774
12년 전 조회 2,676
12년 전 조회 1,233
12년 전 조회 3,872
12년 전 조회 9,957
12년 전 조회 1,115
12년 전 조회 2,436
12년 전 조회 2,118
12년 전 조회 2,975
12년 전 조회 6,006
12년 전 조회 2,638
12년 전 조회 2,964
12년 전 조회 956
12년 전 조회 758
12년 전 조회 1,849
12년 전 조회 5,859
12년 전 조회 1,460
12년 전 조회 4,698
12년 전 조회 926
12년 전 조회 4,083
12년 전 조회 1,232
12년 전 조회 1,095
12년 전 조회 1,674
12년 전 조회 1,306
12년 전 조회 557
12년 전 조회 532
12년 전 조회 2만
12년 전 조회 495
🐛 버그신고