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개

댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
13년 전 조회 3,967
13년 전 조회 2,433
13년 전 조회 2,444
13년 전 조회 5,824
13년 전 조회 2,880
13년 전 조회 3,052
13년 전 조회 6,928
13년 전 조회 4,629
13년 전 조회 3,542
13년 전 조회 2,726
13년 전 조회 4,909
13년 전 조회 3,900
13년 전 조회 3,581
13년 전 조회 3,273
13년 전 조회 2,955
13년 전 조회 2,925
13년 전 조회 2,681
13년 전 조회 3,806
13년 전 조회 3,107
13년 전 조회 2,740
13년 전 조회 3,824
13년 전 조회 3,039
13년 전 조회 3,617
13년 전 조회 4,852
13년 전 조회 2,612
13년 전 조회 3,581
13년 전 조회 2,424
13년 전 조회 2,901
13년 전 조회 3,516
13년 전 조회 3,156
13년 전 조회 5,956
13년 전 조회 4,071
13년 전 조회 4,246
13년 전 조회 2,629
13년 전 조회 9,948
13년 전 조회 4,777
13년 전 조회 2,838
13년 전 조회 2,705
13년 전 조회 4,098
13년 전 조회 6,820
13년 전 조회 4,820
13년 전 조회 2,748
13년 전 조회 1.5만
13년 전 조회 2,618
13년 전 조회 2,044
13년 전 조회 5,203
13년 전 조회 2,681
13년 전 조회 1.1만
13년 전 조회 2,228
13년 전 조회 2,521
13년 전 조회 4,653
13년 전 조회 2,274
13년 전 조회 3,170
13년 전 조회 5,104
13년 전 조회 2,474
13년 전 조회 2,379
13년 전 조회 6,761
13년 전 조회 2,866
13년 전 조회 2,177
13년 전 조회 3,930
13년 전 조회 3,950
13년 전 조회 2,920
13년 전 조회 4,361
13년 전 조회 8,012
13년 전 조회 3,573
13년 전 조회 2,182
13년 전 조회 3,327
13년 전 조회 3,277
13년 전 조회 4,038
13년 전 조회 2,042
13년 전 조회 3,133
13년 전 조회 2,061
13년 전 조회 3,196
13년 전 조회 4,121
13년 전 조회 2,495
13년 전 조회 5,332
13년 전 조회 1.1만
13년 전 조회 2,566
13년 전 조회 3,947
13년 전 조회 3,544
13년 전 조회 4,296
13년 전 조회 7,483
13년 전 조회 3,933
13년 전 조회 4,439
13년 전 조회 2,446
13년 전 조회 2,198
13년 전 조회 3,292
13년 전 조회 7,318
13년 전 조회 2,885
13년 전 조회 6,174
13년 전 조회 2,184
13년 전 조회 5,543
13년 전 조회 2,702
13년 전 조회 2,552
13년 전 조회 2,896
13년 전 조회 2,728
13년 전 조회 1,983
13년 전 조회 1,958
13년 전 조회 2.2만
13년 전 조회 1,922