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,920
13년 전 조회 2,380
13년 전 조회 2,402
13년 전 조회 5,782
13년 전 조회 2,840
13년 전 조회 3,008
13년 전 조회 6,883
13년 전 조회 4,586
13년 전 조회 3,496
13년 전 조회 2,692
13년 전 조회 4,866
13년 전 조회 3,854
13년 전 조회 3,544
13년 전 조회 3,221
13년 전 조회 2,907
13년 전 조회 2,890
13년 전 조회 2,635
13년 전 조회 3,770
13년 전 조회 3,066
13년 전 조회 2,697
13년 전 조회 3,781
13년 전 조회 2,996
13년 전 조회 3,575
13년 전 조회 4,810
13년 전 조회 2,571
13년 전 조회 3,543
13년 전 조회 2,388
13년 전 조회 2,855
13년 전 조회 3,475
13년 전 조회 3,124
13년 전 조회 5,923
13년 전 조회 4,027
13년 전 조회 4,212
13년 전 조회 2,583
13년 전 조회 9,910
13년 전 조회 4,736
13년 전 조회 2,799
13년 전 조회 2,669
13년 전 조회 4,065
13년 전 조회 6,782
13년 전 조회 4,789
13년 전 조회 2,707
13년 전 조회 1.5만
13년 전 조회 2,592
13년 전 조회 2,004
13년 전 조회 5,185
13년 전 조회 2,662
13년 전 조회 1.1만
13년 전 조회 2,188
13년 전 조회 2,499
13년 전 조회 4,623
13년 전 조회 2,243
13년 전 조회 3,137
13년 전 조회 5,063
13년 전 조회 2,440
13년 전 조회 2,342
13년 전 조회 6,722
13년 전 조회 2,818
13년 전 조회 2,133
13년 전 조회 3,893
13년 전 조회 3,911
13년 전 조회 2,886
13년 전 조회 4,318
13년 전 조회 7,983
13년 전 조회 3,531
13년 전 조회 2,145
13년 전 조회 3,292
13년 전 조회 3,241
13년 전 조회 4,005
13년 전 조회 2,004
13년 전 조회 3,104
13년 전 조회 2,043
13년 전 조회 3,163
13년 전 조회 4,085
13년 전 조회 2,471
13년 전 조회 5,295
13년 전 조회 1.1만
13년 전 조회 2,546
13년 전 조회 3,891
13년 전 조회 3,516
13년 전 조회 4,274
13년 전 조회 7,437
13년 전 조회 3,906
13년 전 조회 4,405
13년 전 조회 2,400
13년 전 조회 2,164
13년 전 조회 3,257
13년 전 조회 7,268
13년 전 조회 2,850
13년 전 조회 6,137
13년 전 조회 2,162
13년 전 조회 5,511
13년 전 조회 2,666
13년 전 조회 2,505
13년 전 조회 2,874
13년 전 조회 2,689
13년 전 조회 1,950
13년 전 조회 1,927
13년 전 조회 2.2만
13년 전 조회 1,867