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,668
12년 전 조회 1,160
12년 전 조회 1,190
12년 전 조회 4,556
12년 전 조회 1,593
12년 전 조회 1,738
12년 전 조회 5,619
12년 전 조회 3,363
12년 전 조회 2,249
12년 전 조회 1,398
12년 전 조회 3,594
12년 전 조회 2,613
12년 전 조회 2,322
12년 전 조회 1,941
12년 전 조회 1,645
12년 전 조회 1,634
12년 전 조회 1,388
12년 전 조회 2,499
12년 전 조회 1,780
12년 전 조회 1,454
12년 전 조회 2,530
12년 전 조회 1,720
12년 전 조회 2,335
12년 전 조회 3,559
12년 전 조회 1,339
12년 전 조회 2,301
12년 전 조회 1,144
12년 전 조회 1,634
12년 전 조회 2,214
12년 전 조회 1,854
12년 전 조회 4,669
12년 전 조회 2,770
12년 전 조회 2,938
12년 전 조회 1,324
12년 전 조회 8,640
12년 전 조회 3,439
12년 전 조회 1,536
12년 전 조회 1,387
12년 전 조회 2,791
12년 전 조회 5,469
12년 전 조회 3,517
12년 전 조회 1,438
12년 전 조회 1.4만
12년 전 조회 1,293
12년 전 조회 714
12년 전 조회 4,033
12년 전 조회 1,551
12년 전 조회 9,454
12년 전 조회 881
12년 전 조회 1,342
12년 전 조회 3,322
12년 전 조회 947
12년 전 조회 1,866
12년 전 조회 3,765
12년 전 조회 1,179
12년 전 조회 1,066
12년 전 조회 5,405
12년 전 조회 1,533
12년 전 조회 860
12년 전 조회 2,748
12년 전 조회 2,582
12년 전 조회 1,607
12년 전 조회 3,030
12년 전 조회 6,648
12년 전 조회 2,243
12년 전 조회 833
12년 전 조회 2,015
12년 전 조회 1,957
12년 전 조회 2,705
12년 전 조회 709
12년 전 조회 1,795
12년 전 조회 881
12년 전 조회 1,867
12년 전 조회 2,779
12년 전 조회 1,345
12년 전 조회 3,979
12년 전 조회 1만
12년 전 조회 1,209
12년 전 조회 2,543
12년 전 조회 2,220
12년 전 조회 3,089
12년 전 조회 6,122
12년 전 조회 2,734
12년 전 조회 3,068
12년 전 조회 1,068
12년 전 조회 865
12년 전 조회 1,957
12년 전 조회 5,958
12년 전 조회 1,575
12년 전 조회 4,807
12년 전 조회 1,030
12년 전 조회 4,193
12년 전 조회 1,347
12년 전 조회 1,193
12년 전 조회 1,780
12년 전 조회 1,408
12년 전 조회 669
12년 전 조회 645
12년 전 조회 2.1만
12년 전 조회 606
🐛 버그신고