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,703
12년 전 조회 1,192
12년 전 조회 1,217
12년 전 조회 4,588
12년 전 조회 1,628
12년 전 조회 1,779
12년 전 조회 5,646
12년 전 조회 3,397
12년 전 조회 2,289
12년 전 조회 1,436
12년 전 조회 3,625
12년 전 조회 2,645
12년 전 조회 2,363
12년 전 조회 1,973
12년 전 조회 1,677
12년 전 조회 1,674
12년 전 조회 1,423
12년 전 조회 2,532
12년 전 조회 1,815
12년 전 조회 1,484
12년 전 조회 2,569
12년 전 조회 1,737
12년 전 조회 2,370
12년 전 조회 3,588
12년 전 조회 1,367
12년 전 조회 2,334
12년 전 조회 1,179
12년 전 조회 1,666
12년 전 조회 2,260
12년 전 조회 1,885
12년 전 조회 4,703
12년 전 조회 2,806
12년 전 조회 2,975
12년 전 조회 1,355
12년 전 조회 8,682
12년 전 조회 3,475
12년 전 조회 1,569
12년 전 조회 1,417
12년 전 조회 2,824
12년 전 조회 5,506
12년 전 조회 3,551
12년 전 조회 1,477
12년 전 조회 1.4만
12년 전 조회 1,339
12년 전 조회 745
12년 전 조회 4,068
12년 전 조회 1,578
12년 전 조회 9,482
12년 전 조회 914
12년 전 조회 1,374
12년 전 조회 3,355
12년 전 조회 984
12년 전 조회 1,897
12년 전 조회 3,791
12년 전 조회 1,207
12년 전 조회 1,109
12년 전 조회 5,438
12년 전 조회 1,569
12년 전 조회 891
12년 전 조회 2,756
12년 전 조회 2,620
12년 전 조회 1,646
12년 전 조회 3,058
12년 전 조회 6,677
12년 전 조회 2,279
12년 전 조회 872
12년 전 조회 2,040
12년 전 조회 1,996
12년 전 조회 2,744
12년 전 조회 735
12년 전 조회 1,827
12년 전 조회 918
12년 전 조회 1,903
12년 전 조회 2,817
12년 전 조회 1,376
12년 전 조회 4,006
12년 전 조회 1만
12년 전 조회 1,251
12년 전 조회 2,578
12년 전 조회 2,255
12년 전 조회 3,116
12년 전 조회 6,153
12년 전 조회 2,778
12년 전 조회 3,099
12년 전 조회 1,111
12년 전 조회 895
12년 전 조회 1,982
12년 전 조회 6,005
12년 전 조회 1,609
12년 전 조회 4,835
12년 전 조회 1,078
12년 전 조회 4,231
12년 전 조회 1,379
12년 전 조회 1,221
12년 전 조회 1,815
12년 전 조회 1,438
12년 전 조회 714
12년 전 조회 682
12년 전 조회 2.1만
12년 전 조회 647
🐛 버그신고