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,955
13년 전 조회 2,415
13년 전 조회 2,430
13년 전 조회 5,808
13년 전 조회 2,872
13년 전 조회 3,041
13년 전 조회 6,917
13년 전 조회 4,611
13년 전 조회 3,531
13년 전 조회 2,718
13년 전 조회 4,900
13년 전 조회 3,883
13년 전 조회 3,572
13년 전 조회 3,251
13년 전 조회 2,944
13년 전 조회 2,912
13년 전 조회 2,670
13년 전 조회 3,797
13년 전 조회 3,096
13년 전 조회 2,730
13년 전 조회 3,813
13년 전 조회 3,027
13년 전 조회 3,605
13년 전 조회 4,838
13년 전 조회 2,599
13년 전 조회 3,569
13년 전 조회 2,410
13년 전 조회 2,883
13년 전 조회 3,508
13년 전 조회 3,149
13년 전 조회 5,946
13년 전 조회 4,053
13년 전 조회 4,240
13년 전 조회 2,613
13년 전 조회 9,938
13년 전 조회 4,765
13년 전 조회 2,827
13년 전 조회 2,693
13년 전 조회 4,092
13년 전 조회 6,811
13년 전 조회 4,814
13년 전 조회 2,732
13년 전 조회 1.5만
13년 전 조회 2,613
13년 전 조회 2,032
13년 전 조회 5,201
13년 전 조회 2,673
13년 전 조회 1.1만
13년 전 조회 2,215
13년 전 조회 2,517
13년 전 조회 4,644
13년 전 조회 2,265
13년 전 조회 3,161
13년 전 조회 5,088
13년 전 조회 2,462
13년 전 조회 2,370
13년 전 조회 6,754
13년 전 조회 2,859
13년 전 조회 2,165
13년 전 조회 3,915
13년 전 조회 3,942
13년 전 조회 2,913
13년 전 조회 4,348
13년 전 조회 8,003
13년 전 조회 3,559
13년 전 조회 2,173
13년 전 조회 3,315
13년 전 조회 3,268
13년 전 조회 4,027
13년 전 조회 2,025
13년 전 조회 3,120
13년 전 조회 2,055
13년 전 조회 3,185
13년 전 조회 4,109
13년 전 조회 2,486
13년 전 조회 5,321
13년 전 조회 1.1만
13년 전 조회 2,560
13년 전 조회 3,931
13년 전 조회 3,535
13년 전 조회 4,285
13년 전 조회 7,471
13년 전 조회 3,927
13년 전 조회 4,427
13년 전 조회 2,425
13년 전 조회 2,185
13년 전 조회 3,279
13년 전 조회 7,303
13년 전 조회 2,872
13년 전 조회 6,165
13년 전 조회 2,178
13년 전 조회 5,532
13년 전 조회 2,694
13년 전 조회 2,538
13년 전 조회 2,891
13년 전 조회 2,718
13년 전 조회 1,973
13년 전 조회 1,947
13년 전 조회 2.2만
13년 전 조회 1,905