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,834
12년 전 조회 1,298
12년 전 조회 1,321
12년 전 조회 4,719
12년 전 조회 1,753
12년 전 조회 1,900
12년 전 조회 5,762
12년 전 조회 3,497
12년 전 조회 2,406
12년 전 조회 1,559
12년 전 조회 3,744
12년 전 조회 2,770
12년 전 조회 2,477
12년 전 조회 2,113
12년 전 조회 1,795
12년 전 조회 1,796
12년 전 조회 1,544
12년 전 조회 2,671
12년 전 조회 1,943
12년 전 조회 1,620
12년 전 조회 2,703
12년 전 조회 1,877
12년 전 조회 2,500
12년 전 조회 3,712
12년 전 조회 1,504
12년 전 조회 2,459
12년 전 조회 1,316
12년 전 조회 1,805
12년 전 조회 2,385
12년 전 조회 2,012
12년 전 조회 4,824
12년 전 조회 2,932
12년 전 조회 3,104
12년 전 조회 1,466
12년 전 조회 8,789
12년 전 조회 3,617
12년 전 조회 1,696
12년 전 조회 1,561
12년 전 조회 2,951
12년 전 조회 5,631
12년 전 조회 3,670
12년 전 조회 1,618
12년 전 조회 1.4만
12년 전 조회 1,479
12년 전 조회 883
12년 전 조회 4,190
12년 전 조회 1,697
12년 전 조회 9,581
12년 전 조회 1,068
12년 전 조회 1,502
12년 전 조회 3,465
12년 전 조회 1,116
12년 전 조회 2,021
12년 전 조회 3,923
12년 전 조회 1,333
12년 전 조회 1,235
12년 전 조회 5,559
12년 전 조회 1,703
12년 전 조회 1,032
12년 전 조회 2,815
12년 전 조회 2,752
12년 전 조회 1,763
12년 전 조회 3,204
12년 전 조회 6,829
12년 전 조회 2,401
12년 전 조회 1,010
12년 전 조회 2,160
12년 전 조회 2,085
12년 전 조회 2,872
12년 전 조회 866
12년 전 조회 1,960
12년 전 조회 1,038
12년 전 조회 2,010
12년 전 조회 2,950
12년 전 조회 1,503
12년 전 조회 4,141
12년 전 조회 1만
12년 전 조회 1,369
12년 전 조회 2,714
12년 전 조회 2,393
12년 전 조회 3,255
12년 전 조회 6,278
12년 전 조회 2,883
12년 전 조회 3,227
13년 전 조회 1,236
13년 전 조회 1,026
13년 전 조회 2,121
13년 전 조회 6,128
13년 전 조회 1,732
13년 전 조회 4,971
13년 전 조회 1,190
13년 전 조회 4,357
13년 전 조회 1,498
13년 전 조회 1,350
13년 전 조회 1,928
13년 전 조회 1,565
13년 전 조회 818
13년 전 조회 801
13년 전 조회 2.1만
13년 전 조회 767