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,579
12년 전 조회 1,070
12년 전 조회 1,093
12년 전 조회 4,460
12년 전 조회 1,508
12년 전 조회 1,651
12년 전 조회 5,510
12년 전 조회 3,275
12년 전 조회 2,155
12년 전 조회 1,315
12년 전 조회 3,503
12년 전 조회 2,534
12년 전 조회 2,241
12년 전 조회 1,860
12년 전 조회 1,556
12년 전 조회 1,549
12년 전 조회 1,301
12년 전 조회 2,419
12년 전 조회 1,692
12년 전 조회 1,366
12년 전 조회 2,449
12년 전 조회 1,631
12년 전 조회 2,244
12년 전 조회 3,459
12년 전 조회 1,248
12년 전 조회 2,217
12년 전 조회 1,055
12년 전 조회 1,545
12년 전 조회 2,135
12년 전 조회 1,769
12년 전 조회 4,578
12년 전 조회 2,678
12년 전 조회 2,847
12년 전 조회 1,240
12년 전 조회 8,557
12년 전 조회 3,353
12년 전 조회 1,449
12년 전 조회 1,304
12년 전 조회 2,702
12년 전 조회 5,379
12년 전 조회 3,431
12년 전 조회 1,359
12년 전 조회 1.3만
12년 전 조회 1,213
12년 전 조회 628
12년 전 조회 3,944
12년 전 조회 1,472
12년 전 조회 9,371
12년 전 조회 802
12년 전 조회 1,258
12년 전 조회 3,234
12년 전 조회 864
12년 전 조회 1,789
12년 전 조회 3,661
12년 전 조회 1,087
12년 전 조회 971
12년 전 조회 5,318
12년 전 조회 1,444
12년 전 조회 775
12년 전 조회 2,739
12년 전 조회 2,501
12년 전 조회 1,522
12년 전 조회 2,955
12년 전 조회 6,564
12년 전 조회 2,152
12년 전 조회 758
12년 전 조회 1,924
12년 전 조회 1,874
12년 전 조회 2,624
12년 전 조회 613
12년 전 조회 1,709
12년 전 조회 790
12년 전 조회 1,789
12년 전 조회 2,700
12년 전 조회 1,262
12년 전 조회 3,896
12년 전 조회 9,979
12년 전 조회 1,135
12년 전 조회 2,460
12년 전 조회 2,140
12년 전 조회 2,998
12년 전 조회 6,030
12년 전 조회 2,655
12년 전 조회 2,984
12년 전 조회 978
12년 전 조회 782
12년 전 조회 1,873
12년 전 조회 5,881
12년 전 조회 1,486
12년 전 조회 4,722
12년 전 조회 945
12년 전 조회 4,111
12년 전 조회 1,256
12년 전 조회 1,116
12년 전 조회 1,700
12년 전 조회 1,332
12년 전 조회 582
12년 전 조회 560
12년 전 조회 2만
12년 전 조회 522
🐛 버그신고