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,750
12년 전 조회 1,234
12년 전 조회 1,255
12년 전 조회 4,636
12년 전 조회 1,679
12년 전 조회 1,829
12년 전 조회 5,691
12년 전 조회 3,433
12년 전 조회 2,333
12년 전 조회 1,484
12년 전 조회 3,670
12년 전 조회 2,697
12년 전 조회 2,405
12년 전 조회 2,037
12년 전 조회 1,721
12년 전 조회 1,720
12년 전 조회 1,474
12년 전 조회 2,592
12년 전 조회 1,868
12년 전 조회 1,542
12년 전 조회 2,625
12년 전 조회 1,804
12년 전 조회 2,425
12년 전 조회 3,639
12년 전 조회 1,424
12년 전 조회 2,384
12년 전 조회 1,236
12년 전 조회 1,727
12년 전 조회 2,300
12년 전 조회 1,934
12년 전 조회 4,753
12년 전 조회 2,859
12년 전 조회 3,028
12년 전 조회 1,402
12년 전 조회 8,720
12년 전 조회 3,531
12년 전 조회 1,621
12년 전 조회 1,481
12년 전 조회 2,872
12년 전 조회 5,552
12년 전 조회 3,606
12년 전 조회 1,534
12년 전 조회 1.4만
12년 전 조회 1,398
12년 전 조회 803
12년 전 조회 4,118
12년 전 조회 1,620
12년 전 조회 9,514
12년 전 조회 985
12년 전 조회 1,428
12년 전 조회 3,402
12년 전 조회 1,038
12년 전 조회 1,946
12년 전 조회 3,845
12년 전 조회 1,255
12년 전 조회 1,161
12년 전 조회 5,490
12년 전 조회 1,626
12년 전 조회 953
12년 전 조회 2,773
12년 전 조회 2,684
12년 전 조회 1,698
12년 전 조회 3,133
12년 전 조회 6,741
12년 전 조회 2,332
12년 전 조회 937
12년 전 조회 2,100
12년 전 조회 2,031
12년 전 조회 2,801
12년 전 조회 790
12년 전 조회 1,888
12년 전 조회 971
12년 전 조회 1,952
12년 전 조회 2,880
12년 전 조회 1,435
12년 전 조회 4,066
12년 전 조회 1만
12년 전 조회 1,301
12년 전 조회 2,638
12년 전 조회 2,324
12년 전 조회 3,183
12년 전 조회 6,204
12년 전 조회 2,819
12년 전 조회 3,165
12년 전 조회 1,161
12년 전 조회 953
12년 전 조회 2,048
12년 전 조회 6,058
12년 전 조회 1,660
12년 전 조회 4,897
13년 전 조회 1,119
13년 전 조회 4,288
13년 전 조회 1,431
13년 전 조회 1,284
13년 전 조회 1,863
13년 전 조회 1,497
13년 전 조회 762
13년 전 조회 730
13년 전 조회 2.1만
13년 전 조회 693
🐛 버그신고