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,570
12년 전 조회 1,059
12년 전 조회 1,083
12년 전 조회 4,450
12년 전 조회 1,503
12년 전 조회 1,642
12년 전 조회 5,502
12년 전 조회 3,271
12년 전 조회 2,148
12년 전 조회 1,306
12년 전 조회 3,493
12년 전 조회 2,527
12년 전 조회 2,231
12년 전 조회 1,852
12년 전 조회 1,548
12년 전 조회 1,537
12년 전 조회 1,293
12년 전 조회 2,407
12년 전 조회 1,684
12년 전 조회 1,356
12년 전 조회 2,445
12년 전 조회 1,621
12년 전 조회 2,233
12년 전 조회 3,456
12년 전 조회 1,240
12년 전 조회 2,208
12년 전 조회 1,049
12년 전 조회 1,534
12년 전 조회 2,127
12년 전 조회 1,761
12년 전 조회 4,571
12년 전 조회 2,671
12년 전 조회 2,840
12년 전 조회 1,232
12년 전 조회 8,549
12년 전 조회 3,343
12년 전 조회 1,444
12년 전 조회 1,296
12년 전 조회 2,692
12년 전 조회 5,370
12년 전 조회 3,421
12년 전 조회 1,351
12년 전 조회 1.3만
12년 전 조회 1,210
12년 전 조회 617
12년 전 조회 3,936
12년 전 조회 1,468
12년 전 조회 9,367
12년 전 조회 792
12년 전 조회 1,247
12년 전 조회 3,228
12년 전 조회 855
12년 전 조회 1,780
12년 전 조회 3,651
12년 전 조회 1,082
12년 전 조회 964
12년 전 조회 5,311
12년 전 조회 1,439
12년 전 조회 767
12년 전 조회 2,738
12년 전 조회 2,492
12년 전 조회 1,514
12년 전 조회 2,946
12년 전 조회 6,555
12년 전 조회 2,148
12년 전 조회 751
12년 전 조회 1,913
12년 전 조회 1,868
12년 전 조회 2,617
12년 전 조회 606
12년 전 조회 1,701
12년 전 조회 781
12년 전 조회 1,783
12년 전 조회 2,695
12년 전 조회 1,253
12년 전 조회 3,891
12년 전 조회 9,971
12년 전 조회 1,127
12년 전 조회 2,448
12년 전 조회 2,133
12년 전 조회 2,990
12년 전 조회 6,020
12년 전 조회 2,648
12년 전 조회 2,979
12년 전 조회 972
12년 전 조회 772
12년 전 조회 1,864
12년 전 조회 5,874
12년 전 조회 1,476
12년 전 조회 4,714
12년 전 조회 940
12년 전 조회 4,101
12년 전 조회 1,250
12년 전 조회 1,112
12년 전 조회 1,691
12년 전 조회 1,323
12년 전 조회 575
12년 전 조회 550
12년 전 조회 2만
12년 전 조회 510
🐛 버그신고