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,712
12년 전 조회 1,202
12년 전 조회 1,225
12년 전 조회 4,595
12년 전 조회 1,635
12년 전 조회 1,788
12년 전 조회 5,651
12년 전 조회 3,401
12년 전 조회 2,298
12년 전 조회 1,444
12년 전 조회 3,634
12년 전 조회 2,656
12년 전 조회 2,369
12년 전 조회 1,981
12년 전 조회 1,689
12년 전 조회 1,683
12년 전 조회 1,440
12년 전 조회 2,541
12년 전 조회 1,824
12년 전 조회 1,492
12년 전 조회 2,579
12년 전 조회 1,748
12년 전 조회 2,380
12년 전 조회 3,599
12년 전 조회 1,375
12년 전 조회 2,345
12년 전 조회 1,190
12년 전 조회 1,675
12년 전 조회 2,270
12년 전 조회 1,897
12년 전 조회 4,713
12년 전 조회 2,810
12년 전 조회 2,983
12년 전 조회 1,360
12년 전 조회 8,688
12년 전 조회 3,484
12년 전 조회 1,576
12년 전 조회 1,432
12년 전 조회 2,829
12년 전 조회 5,516
12년 전 조회 3,560
12년 전 조회 1,483
12년 전 조회 1.4만
12년 전 조회 1,351
12년 전 조회 753
12년 전 조회 4,081
12년 전 조회 1,586
12년 전 조회 9,487
12년 전 조회 926
12년 전 조회 1,383
12년 전 조회 3,365
12년 전 조회 991
12년 전 조회 1,908
12년 전 조회 3,800
12년 전 조회 1,218
12년 전 조회 1,123
12년 전 조회 5,447
12년 전 조회 1,579
12년 전 조회 901
12년 전 조회 2,758
12년 전 조회 2,629
12년 전 조회 1,658
12년 전 조회 3,067
12년 전 조회 6,687
12년 전 조회 2,291
12년 전 조회 884
12년 전 조회 2,052
12년 전 조회 2,002
12년 전 조회 2,754
12년 전 조회 743
12년 전 조회 1,834
12년 전 조회 929
12년 전 조회 1,907
12년 전 조회 2,826
12년 전 조회 1,385
12년 전 조회 4,017
12년 전 조회 1만
12년 전 조회 1,262
12년 전 조회 2,587
12년 전 조회 2,268
12년 전 조회 3,131
12년 전 조회 6,164
12년 전 조회 2,782
12년 전 조회 3,113
12년 전 조회 1,121
12년 전 조회 907
12년 전 조회 1,995
12년 전 조회 6,014
12년 전 조회 1,619
12년 전 조회 4,849
12년 전 조회 1,088
12년 전 조회 4,244
12년 전 조회 1,386
12년 전 조회 1,232
12년 전 조회 1,825
12년 전 조회 1,449
12년 전 조회 724
12년 전 조회 689
12년 전 조회 2.1만
12년 전 조회 654
🐛 버그신고