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년 전 조회 3,338
12년 전 조회 1,799
12년 전 조회 1,854
12년 전 조회 5,219
12년 전 조회 2,277
12년 전 조회 2,454
12년 전 조회 6,283
12년 전 조회 3,989
12년 전 조회 2,947
12년 전 조회 2,091
12년 전 조회 4,260
12년 전 조회 3,273
12년 전 조회 2,955
12년 전 조회 2,625
12년 전 조회 2,307
12년 전 조회 2,327
12년 전 조회 2,061
12년 전 조회 3,138
12년 전 조회 2,456
12년 전 조회 2,159
12년 전 조회 3,222
12년 전 조회 2,411
12년 전 조회 2,997
12년 전 조회 4,215
12년 전 조회 1,971
12년 전 조회 2,953
12년 전 조회 1,808
12년 전 조회 2,286
12년 전 조회 2,933
12년 전 조회 2,547
12년 전 조회 5,347
12년 전 조회 3,467
12년 전 조회 3,660
12년 전 조회 2,023
12년 전 조회 9,346
12년 전 조회 4,157
12년 전 조회 2,214
12년 전 조회 2,084
12년 전 조회 3,519
12년 전 조회 6,202
12년 전 조회 4,222
12년 전 조회 2,127
12년 전 조회 1.4만
13년 전 조회 2,003
13년 전 조회 1,424
13년 전 조회 4,793
13년 전 조회 2,277
13년 전 조회 1만
13년 전 조회 1,605
13년 전 조회 2,045
13년 전 조회 4,054
13년 전 조회 1,687
13년 전 조회 2,587
13년 전 조회 4,573
13년 전 조회 1,881
13년 전 조회 1,772
13년 전 조회 6,142
13년 전 조회 2,273
13년 전 조회 1,603
13년 전 조회 3,339
13년 전 조회 3,330
13년 전 조회 2,315
13년 전 조회 3,726
13년 전 조회 7,418
13년 전 조회 3,001
13년 전 조회 1,558
13년 전 조회 2,722
13년 전 조회 2,694
13년 전 조회 3,441
13년 전 조회 1,414
13년 전 조회 2,507
13년 전 조회 1,570
13년 전 조회 2,594
13년 전 조회 3,497
13년 전 조회 2,057
13년 전 조회 4,695
13년 전 조회 1.1만
13년 전 조회 1,956
13년 전 조회 3,327
13년 전 조회 2,947
13년 전 조회 3,869
13년 전 조회 6,863
13년 전 조회 3,518
13년 전 조회 3,840
13년 전 조회 1,803
13년 전 조회 1,578
13년 전 조회 2,679
13년 전 조회 6,683
13년 전 조회 2,298
13년 전 조회 5,537
13년 전 조회 1,715
13년 전 조회 4,938
13년 전 조회 2,101
13년 전 조회 1,904
13년 전 조회 2,457
13년 전 조회 2,093
13년 전 조회 1,356
13년 전 조회 1,334
13년 전 조회 2.1만
13년 전 조회 1,301