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년 전 조회 4,017
13년 전 조회 2,471
13년 전 조회 2,482
13년 전 조회 5,872
13년 전 조회 2,920
13년 전 조회 3,087
13년 전 조회 6,962
13년 전 조회 4,660
13년 전 조회 3,592
13년 전 조회 2,764
13년 전 조회 4,944
13년 전 조회 3,959
13년 전 조회 3,637
13년 전 조회 3,311
13년 전 조회 2,998
13년 전 조회 2,964
13년 전 조회 2,726
13년 전 조회 3,848
13년 전 조회 3,158
13년 전 조회 2,781
13년 전 조회 3,867
13년 전 조회 3,079
13년 전 조회 3,670
13년 전 조회 4,893
13년 전 조회 2,653
13년 전 조회 3,616
13년 전 조회 2,459
13년 전 조회 2,951
13년 전 조회 3,560
13년 전 조회 3,201
13년 전 조회 6,010
13년 전 조회 4,121
13년 전 조회 4,283
13년 전 조회 2,675
13년 전 조회 9,989
13년 전 조회 4,809
13년 전 조회 2,883
13년 전 조회 2,757
13년 전 조회 4,143
13년 전 조회 6,870
13년 전 조회 4,863
13년 전 조회 2,790
13년 전 조회 1.5만
13년 전 조회 2,665
13년 전 조회 2,092
13년 전 조회 5,229
13년 전 조회 2,703
13년 전 조회 1.1만
13년 전 조회 2,277
13년 전 조회 2,537
13년 전 조회 4,712
13년 전 조회 2,327
13년 전 조회 3,231
13년 전 조회 5,146
13년 전 조회 2,521
13년 전 조회 2,424
13년 전 조회 6,810
13년 전 조회 2,904
13년 전 조회 2,220
13년 전 조회 3,967
13년 전 조회 3,994
13년 전 조회 2,966
13년 전 조회 4,410
13년 전 조회 8,069
13년 전 조회 3,624
13년 전 조회 2,238
13년 전 조회 3,378
13년 전 조회 3,329
13년 전 조회 4,086
13년 전 조회 2,095
13년 전 조회 3,185
13년 전 조회 2,081
13년 전 조회 3,251
13년 전 조회 4,168
13년 전 조회 2,517
13년 전 조회 5,373
13년 전 조회 1.2만
13년 전 조회 2,608
13년 전 조회 4,001
13년 전 조회 3,598
13년 전 조회 4,321
13년 전 조회 7,541
13년 전 조회 3,953
13년 전 조회 4,488
13년 전 조회 2,507
13년 전 조회 2,253
13년 전 조회 3,361
13년 전 조회 7,381
13년 전 조회 2,944
13년 전 조회 6,235
13년 전 조회 2,211
13년 전 조회 5,607
13년 전 조회 2,752
13년 전 조회 2,603
13년 전 조회 2,913
13년 전 조회 2,795
13년 전 조회 2,041
13년 전 조회 2,004
13년 전 조회 2.2만
13년 전 조회 1,986