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,784
12년 전 조회 1,262
12년 전 조회 1,288
12년 전 조회 4,668
12년 전 조회 1,712
12년 전 조회 1,862
12년 전 조회 5,720
12년 전 조회 3,458
12년 전 조회 2,366
12년 전 조회 1,517
12년 전 조회 3,705
12년 전 조회 2,728
12년 전 조회 2,436
12년 전 조회 2,070
12년 전 조회 1,762
12년 전 조회 1,753
12년 전 조회 1,505
12년 전 조회 2,623
12년 전 조회 1,903
12년 전 조회 1,577
12년 전 조회 2,662
12년 전 조회 1,832
12년 전 조회 2,451
12년 전 조회 3,672
12년 전 조회 1,458
12년 전 조회 2,420
12년 전 조회 1,266
12년 전 조회 1,755
12년 전 조회 2,332
12년 전 조회 1,970
12년 전 조회 4,786
12년 전 조회 2,881
12년 전 조회 3,066
12년 전 조회 1,427
12년 전 조회 8,750
12년 전 조회 3,574
12년 전 조회 1,649
12년 전 조회 1,516
12년 전 조회 2,898
12년 전 조회 5,576
12년 전 조회 3,629
12년 전 조회 1,561
12년 전 조회 1.4만
12년 전 조회 1,430
12년 전 조회 836
12년 전 조회 4,144
12년 전 조회 1,653
12년 전 조회 9,549
12년 전 조회 1,009
12년 전 조회 1,464
12년 전 조회 3,426
12년 전 조회 1,070
12년 전 조회 1,976
12년 전 조회 3,874
12년 전 조회 1,284
12년 전 조회 1,184
12년 전 조회 5,517
12년 전 조회 1,646
12년 전 조회 985
12년 전 조회 2,789
12년 전 조회 2,711
12년 전 조회 1,719
12년 전 조회 3,156
12년 전 조회 6,770
12년 전 조회 2,362
12년 전 조회 963
12년 전 조회 2,121
12년 전 조회 2,053
12년 전 조회 2,825
12년 전 조회 820
12년 전 조회 1,907
12년 전 조회 994
12년 전 조회 1,975
12년 전 조회 2,904
12년 전 조회 1,458
12년 전 조회 4,092
12년 전 조회 1만
12년 전 조회 1,326
12년 전 조회 2,666
12년 전 조회 2,342
12년 전 조회 3,209
12년 전 조회 6,228
12년 전 조회 2,847
12년 전 조회 3,191
12년 전 조회 1,188
13년 전 조회 976
13년 전 조회 2,072
13년 전 조회 6,083
13년 전 조회 1,687
13년 전 조회 4,922
13년 전 조회 1,145
13년 전 조회 4,313
13년 전 조회 1,452
13년 전 조회 1,304
13년 전 조회 1,892
13년 전 조회 1,528
13년 전 조회 780
13년 전 조회 760
13년 전 조회 2.1만
13년 전 조회 722