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,686
12년 전 조회 1,177
12년 전 조회 1,205
12년 전 조회 4,567
12년 전 조회 1,611
12년 전 조회 1,766
12년 전 조회 5,632
12년 전 조회 3,376
12년 전 조회 2,271
12년 전 조회 1,419
12년 전 조회 3,606
12년 전 조회 2,627
12년 전 조회 2,340
12년 전 조회 1,957
12년 전 조회 1,659
12년 전 조회 1,657
12년 전 조회 1,404
12년 전 조회 2,512
12년 전 조회 1,796
12년 전 조회 1,470
12년 전 조회 2,542
12년 전 조회 1,729
12년 전 조회 2,352
12년 전 조회 3,574
12년 전 조회 1,355
12년 전 조회 2,316
12년 전 조회 1,162
12년 전 조회 1,652
12년 전 조회 2,238
12년 전 조회 1,868
12년 전 조회 4,684
12년 전 조회 2,791
12년 전 조회 2,957
12년 전 조회 1,338
12년 전 조회 8,661
12년 전 조회 3,455
12년 전 조회 1,554
12년 전 조회 1,406
12년 전 조회 2,803
12년 전 조회 5,486
12년 전 조회 3,533
12년 전 조회 1,453
12년 전 조회 1.4만
12년 전 조회 1,316
12년 전 조회 726
12년 전 조회 4,047
12년 전 조회 1,566
12년 전 조회 9,469
12년 전 조회 897
12년 전 조회 1,354
12년 전 조회 3,340
12년 전 조회 963
12년 전 조회 1,881
12년 전 조회 3,780
12년 전 조회 1,191
12년 전 조회 1,086
12년 전 조회 5,418
12년 전 조회 1,550
12년 전 조회 874
12년 전 조회 2,753
12년 전 조회 2,600
12년 전 조회 1,629
12년 전 조회 3,039
12년 전 조회 6,661
12년 전 조회 2,258
12년 전 조회 855
12년 전 조회 2,026
12년 전 조회 1,979
12년 전 조회 2,727
12년 전 조회 725
12년 전 조회 1,806
12년 전 조회 900
12년 전 조회 1,882
12년 전 조회 2,803
12년 전 조회 1,363
12년 전 조회 3,993
12년 전 조회 1만
12년 전 조회 1,229
12년 전 조회 2,561
12년 전 조회 2,240
12년 전 조회 3,102
12년 전 조회 6,135
12년 전 조회 2,758
12년 전 조회 3,081
12년 전 조회 1,089
12년 전 조회 879
12년 전 조회 1,969
12년 전 조회 5,978
12년 전 조회 1,592
12년 전 조회 4,823
12년 전 조회 1,052
12년 전 조회 4,215
12년 전 조회 1,358
12년 전 조회 1,215
12년 전 조회 1,799
12년 전 조회 1,422
12년 전 조회 691
12년 전 조회 662
12년 전 조회 2.1만
12년 전 조회 626
🐛 버그신고