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,743
12년 전 조회 1,229
12년 전 조회 1,250
12년 전 조회 4,629
12년 전 조회 1,672
12년 전 조회 1,825
12년 전 조회 5,685
12년 전 조회 3,429
12년 전 조회 2,327
12년 전 조회 1,477
12년 전 조회 3,661
12년 전 조회 2,686
12년 전 조회 2,403
12년 전 조회 2,030
12년 전 조회 1,713
12년 전 조회 1,717
12년 전 조회 1,468
12년 전 조회 2,581
12년 전 조회 1,864
12년 전 조회 1,535
12년 전 조회 2,619
12년 전 조회 1,796
12년 전 조회 2,417
12년 전 조회 3,630
12년 전 조회 1,417
12년 전 조회 2,378
12년 전 조회 1,233
12년 전 조회 1,719
12년 전 조회 2,293
12년 전 조회 1,928
12년 전 조회 4,745
12년 전 조회 2,849
12년 전 조회 3,021
12년 전 조회 1,391
12년 전 조회 8,717
12년 전 조회 3,526
12년 전 조회 1,614
12년 전 조회 1,472
12년 전 조회 2,865
12년 전 조회 5,544
12년 전 조회 3,601
12년 전 조회 1,527
12년 전 조회 1.4만
12년 전 조회 1,393
12년 전 조회 797
12년 전 조회 4,111
12년 전 조회 1,611
12년 전 조회 9,510
12년 전 조회 979
12년 전 조회 1,419
12년 전 조회 3,395
12년 전 조회 1,028
12년 전 조회 1,942
12년 전 조회 3,837
12년 전 조회 1,252
12년 전 조회 1,154
12년 전 조회 5,485
12년 전 조회 1,620
12년 전 조회 946
12년 전 조회 2,772
12년 전 조회 2,670
12년 전 조회 1,692
12년 전 조회 3,123
12년 전 조회 6,733
12년 전 조회 2,324
12년 전 조회 930
12년 전 조회 2,092
12년 전 조회 2,030
12년 전 조회 2,791
12년 전 조회 780
12년 전 조회 1,877
12년 전 조회 966
12년 전 조회 1,944
12년 전 조회 2,870
12년 전 조회 1,426
12년 전 조회 4,063
12년 전 조회 1만
12년 전 조회 1,299
12년 전 조회 2,628
12년 전 조회 2,314
12년 전 조회 3,174
12년 전 조회 6,200
12년 전 조회 2,814
12년 전 조회 3,157
12년 전 조회 1,155
12년 전 조회 948
12년 전 조회 2,041
12년 전 조회 6,053
12년 전 조회 1,654
12년 전 조회 4,890
12년 전 조회 1,115
12년 전 조회 4,285
12년 전 조회 1,426
13년 전 조회 1,278
13년 전 조회 1,858
13년 전 조회 1,489
13년 전 조회 759
13년 전 조회 720
13년 전 조회 2.1만
13년 전 조회 685
🐛 버그신고