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,659
12년 전 조회 1,154
12년 전 조회 1,182
12년 전 조회 4,553
12년 전 조회 1,587
12년 전 조회 1,732
12년 전 조회 5,611
12년 전 조회 3,351
12년 전 조회 2,240
12년 전 조회 1,391
12년 전 조회 3,588
12년 전 조회 2,608
12년 전 조회 2,315
12년 전 조회 1,930
12년 전 조회 1,634
12년 전 조회 1,623
12년 전 조회 1,381
12년 전 조회 2,495
12년 전 조회 1,768
12년 전 조회 1,445
12년 전 조회 2,522
12년 전 조회 1,713
12년 전 조회 2,324
12년 전 조회 3,551
12년 전 조회 1,332
12년 전 조회 2,292
12년 전 조회 1,139
12년 전 조회 1,626
12년 전 조회 2,207
12년 전 조회 1,847
12년 전 조회 4,660
12년 전 조회 2,762
12년 전 조회 2,929
12년 전 조회 1,315
12년 전 조회 8,630
12년 전 조회 3,428
12년 전 조회 1,524
12년 전 조회 1,379
12년 전 조회 2,780
12년 전 조회 5,462
12년 전 조회 3,511
12년 전 조회 1,432
12년 전 조회 1.4만
12년 전 조회 1,286
12년 전 조회 706
12년 전 조회 4,025
12년 전 조회 1,538
12년 전 조회 9,443
12년 전 조회 874
12년 전 조회 1,334
12년 전 조회 3,304
12년 전 조회 939
12년 전 조회 1,853
12년 전 조회 3,761
12년 전 조회 1,170
12년 전 조회 1,054
12년 전 조회 5,397
12년 전 조회 1,522
12년 전 조회 848
12년 전 조회 2,745
12년 전 조회 2,574
12년 전 조회 1,601
12년 전 조회 3,025
12년 전 조회 6,640
12년 전 조회 2,237
12년 전 조회 825
12년 전 조회 2,002
12년 전 조회 1,949
12년 전 조회 2,697
12년 전 조회 698
12년 전 조회 1,786
12년 전 조회 868
12년 전 조회 1,858
12년 전 조회 2,774
12년 전 조회 1,332
12년 전 조회 3,973
12년 전 조회 1만
12년 전 조회 1,195
12년 전 조회 2,531
12년 전 조회 2,214
12년 전 조회 3,075
12년 전 조회 6,116
12년 전 조회 2,726
12년 전 조회 3,058
12년 전 조회 1,064
12년 전 조회 854
12년 전 조회 1,946
12년 전 조회 5,952
12년 전 조회 1,570
12년 전 조회 4,797
12년 전 조회 1,021
12년 전 조회 4,189
12년 전 조회 1,339
12년 전 조회 1,189
12년 전 조회 1,770
12년 전 조회 1,396
12년 전 조회 659
12년 전 조회 633
12년 전 조회 2.1만
12년 전 조회 599
🐛 버그신고