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년 전 조회 3,632
12년 전 조회 2,098
12년 전 조회 2,128
12년 전 조회 5,488
12년 전 조회 2,549
12년 전 조회 2,741
12년 전 조회 6,545
12년 전 조회 4,278
12년 전 조회 3,213
12년 전 조회 2,372
12년 전 조회 4,562
12년 전 조회 3,552
12년 전 조회 3,258
12년 전 조회 2,934
12년 전 조회 2,608
12년 전 조회 2,607
12년 전 조회 2,349
13년 전 조회 3,432
13년 전 조회 2,747
13년 전 조회 2,419
13년 전 조회 3,485
13년 전 조회 2,710
13년 전 조회 3,274
13년 전 조회 4,492
13년 전 조회 2,260
13년 전 조회 3,265
13년 전 조회 2,103
13년 전 조회 2,557
13년 전 조회 3,228
13년 전 조회 2,842
13년 전 조회 5,638
13년 전 조회 3,743
13년 전 조회 3,928
13년 전 조회 2,314
13년 전 조회 9,623
13년 전 조회 4,447
13년 전 조회 2,502
13년 전 조회 2,347
13년 전 조회 3,784
13년 전 조회 6,502
13년 전 조회 4,500
13년 전 조회 2,397
13년 전 조회 1.5만
13년 전 조회 2,284
13년 전 조회 1,691
13년 전 조회 4,973
13년 전 조회 2,459
13년 전 조회 1만
13년 전 조회 1,890
13년 전 조회 2,278
13년 전 조회 4,341
13년 전 조회 1,964
13년 전 조회 2,859
13년 전 조회 4,777
13년 전 조회 2,164
13년 전 조회 2,071
13년 전 조회 6,453
13년 전 조회 2,547
13년 전 조회 1,874
13년 전 조회 3,618
13년 전 조회 3,630
13년 전 조회 2,585
13년 전 조회 4,020
13년 전 조회 7,693
13년 전 조회 3,280
13년 전 조회 1,845
13년 전 조회 2,989
13년 전 조회 2,958
13년 전 조회 3,723
13년 전 조회 1,680
13년 전 조회 2,790
13년 전 조회 1,799
13년 전 조회 2,891
13년 전 조회 3,768
13년 전 조회 2,242
13년 전 조회 4,965
13년 전 조회 1.1만
13년 전 조회 2,242
13년 전 조회 3,620
13년 전 조회 3,235
13년 전 조회 4,058
13년 전 조회 7,148
13년 전 조회 3,687
13년 전 조회 4,109
13년 전 조회 2,084
13년 전 조회 1,859
13년 전 조회 2,946
13년 전 조회 6,964
13년 전 조회 2,557
13년 전 조회 5,818
13년 전 조회 1,916
13년 전 조회 5,203
13년 전 조회 2,365
13년 전 조회 2,189
13년 전 조회 2,666
13년 전 조회 2,385
13년 전 조회 1,625
13년 전 조회 1,602
13년 전 조회 2.2만
13년 전 조회 1,588