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,629
12년 전 조회 1,113
12년 전 조회 1,138
12년 전 조회 4,507
12년 전 조회 1,555
12년 전 조회 1,696
12년 전 조회 5,561
12년 전 조회 3,320
12년 전 조회 2,199
12년 전 조회 1,356
12년 전 조회 3,544
12년 전 조회 2,581
12년 전 조회 2,277
12년 전 조회 1,896
12년 전 조회 1,599
12년 전 조회 1,594
12년 전 조회 1,339
12년 전 조회 2,458
12년 전 조회 1,732
12년 전 조회 1,417
12년 전 조회 2,489
12년 전 조회 1,672
12년 전 조회 2,287
12년 전 조회 3,508
12년 전 조회 1,297
12년 전 조회 2,266
12년 전 조회 1,103
12년 전 조회 1,585
12년 전 조회 2,172
12년 전 조회 1,813
12년 전 조회 4,619
12년 전 조회 2,721
12년 전 조회 2,894
12년 전 조회 1,285
12년 전 조회 8,591
12년 전 조회 3,385
12년 전 조회 1,492
12년 전 조회 1,340
12년 전 조회 2,741
12년 전 조회 5,419
12년 전 조회 3,471
12년 전 조회 1,393
12년 전 조회 1.4만
12년 전 조회 1,254
12년 전 조회 661
12년 전 조회 3,986
12년 전 조회 1,514
12년 전 조회 9,403
12년 전 조회 836
12년 전 조회 1,294
12년 전 조회 3,267
12년 전 조회 898
12년 전 조회 1,818
12년 전 조회 3,711
12년 전 조회 1,128
12년 전 조회 1,015
12년 전 조회 5,362
12년 전 조회 1,491
12년 전 조회 810
12년 전 조회 2,741
12년 전 조회 2,543
12년 전 조회 1,561
12년 전 조회 2,990
12년 전 조회 6,604
12년 전 조회 2,198
12년 전 조회 792
12년 전 조회 1,958
12년 전 조회 1,911
12년 전 조회 2,665
12년 전 조회 657
12년 전 조회 1,741
12년 전 조회 824
12년 전 조회 1,824
12년 전 조회 2,738
12년 전 조회 1,293
12년 전 조회 3,933
12년 전 조회 1만
12년 전 조회 1,165
12년 전 조회 2,498
12년 전 조회 2,173
12년 전 조회 3,039
12년 전 조회 6,079
12년 전 조회 2,696
12년 전 조회 3,015
12년 전 조회 1,022
12년 전 조회 819
12년 전 조회 1,900
12년 전 조회 5,917
12년 전 조회 1,520
12년 전 조회 4,751
12년 전 조회 982
12년 전 조회 4,149
12년 전 조회 1,301
12년 전 조회 1,157
12년 전 조회 1,731
12년 전 조회 1,364
12년 전 조회 621
12년 전 조회 587
12년 전 조회 2만
12년 전 조회 551
🐛 버그신고