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,827
12년 전 조회 1,293
12년 전 조회 1,315
12년 전 조회 4,717
12년 전 조회 1,751
12년 전 조회 1,897
12년 전 조회 5,758
12년 전 조회 3,494
12년 전 조회 2,403
12년 전 조회 1,555
12년 전 조회 3,742
12년 전 조회 2,764
12년 전 조회 2,475
12년 전 조회 2,107
12년 전 조회 1,786
12년 전 조회 1,791
12년 전 조회 1,537
12년 전 조회 2,665
12년 전 조회 1,937
12년 전 조회 1,618
12년 전 조회 2,700
12년 전 조회 1,872
12년 전 조회 2,492
12년 전 조회 3,706
12년 전 조회 1,500
12년 전 조회 2,456
12년 전 조회 1,312
12년 전 조회 1,803
12년 전 조회 2,379
12년 전 조회 2,010
12년 전 조회 4,819
12년 전 조회 2,925
12년 전 조회 3,100
12년 전 조회 1,464
12년 전 조회 8,785
12년 전 조회 3,610
12년 전 조회 1,690
12년 전 조회 1,554
12년 전 조회 2,946
12년 전 조회 5,624
12년 전 조회 3,667
12년 전 조회 1,614
12년 전 조회 1.4만
12년 전 조회 1,473
12년 전 조회 879
12년 전 조회 4,187
12년 전 조회 1,690
12년 전 조회 9,575
12년 전 조회 1,060
12년 전 조회 1,499
12년 전 조회 3,462
12년 전 조회 1,114
12년 전 조회 2,015
12년 전 조회 3,919
12년 전 조회 1,331
12년 전 조회 1,230
12년 전 조회 5,556
12년 전 조회 1,699
12년 전 조회 1,027
12년 전 조회 2,813
12년 전 조회 2,748
12년 전 조회 1,757
12년 전 조회 3,199
12년 전 조회 6,825
12년 전 조회 2,395
12년 전 조회 999
12년 전 조회 2,159
12년 전 조회 2,081
12년 전 조회 2,864
12년 전 조회 861
12년 전 조회 1,951
12년 전 조회 1,036
12년 전 조회 2,003
12년 전 조회 2,945
12년 전 조회 1,502
12년 전 조회 4,138
12년 전 조회 1만
12년 전 조회 1,364
12년 전 조회 2,711
12년 전 조회 2,390
12년 전 조회 3,249
12년 전 조회 6,271
12년 전 조회 2,879
12년 전 조회 3,226
12년 전 조회 1,227
13년 전 조회 1,021
13년 전 조회 2,111
13년 전 조회 6,122
13년 전 조회 1,729
13년 전 조회 4,968
13년 전 조회 1,187
13년 전 조회 4,354
13년 전 조회 1,494
13년 전 조회 1,345
13년 전 조회 1,926
13년 전 조회 1,561
13년 전 조회 813
13년 전 조회 798
13년 전 조회 2.1만
13년 전 조회 757