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,560
12년 전 조회 1,054
12년 전 조회 1,076
12년 전 조회 4,444
12년 전 조회 1,495
12년 전 조회 1,632
12년 전 조회 5,494
12년 전 조회 3,265
12년 전 조회 2,136
12년 전 조회 1,299
12년 전 조회 3,486
12년 전 조회 2,516
12년 전 조회 2,223
12년 전 조회 1,844
12년 전 조회 1,539
12년 전 조회 1,527
12년 전 조회 1,281
12년 전 조회 2,401
12년 전 조회 1,670
12년 전 조회 1,349
12년 전 조회 2,434
12년 전 조회 1,614
12년 전 조회 2,227
12년 전 조회 3,445
12년 전 조회 1,229
12년 전 조회 2,202
12년 전 조회 1,039
12년 전 조회 1,528
12년 전 조회 2,117
12년 전 조회 1,749
12년 전 조회 4,565
12년 전 조회 2,663
12년 전 조회 2,829
12년 전 조회 1,227
12년 전 조회 8,540
12년 전 조회 3,335
12년 전 조회 1,437
12년 전 조회 1,286
12년 전 조회 2,683
12년 전 조회 5,361
12년 전 조회 3,411
12년 전 조회 1,343
12년 전 조회 1.3만
12년 전 조회 1,200
12년 전 조회 610
12년 전 조회 3,927
12년 전 조회 1,463
12년 전 조회 9,363
12년 전 조회 785
12년 전 조회 1,235
12년 전 조회 3,218
12년 전 조회 845
12년 전 조회 1,766
12년 전 조회 3,643
12년 전 조회 1,069
12년 전 조회 955
12년 전 조회 5,302
12년 전 조회 1,430
12년 전 조회 758
12년 전 조회 2,738
12년 전 조회 2,484
12년 전 조회 1,506
12년 전 조회 2,939
12년 전 조회 6,546
12년 전 조회 2,140
12년 전 조회 742
12년 전 조회 1,905
12년 전 조회 1,857
12년 전 조회 2,605
12년 전 조회 596
12년 전 조회 1,694
12년 전 조회 772
12년 전 조회 1,778
12년 전 조회 2,684
12년 전 조회 1,242
12년 전 조회 3,880
12년 전 조회 9,961
12년 전 조회 1,118
12년 전 조회 2,444
12년 전 조회 2,125
12년 전 조회 2,983
12년 전 조회 6,013
12년 전 조회 2,640
12년 전 조회 2,970
12년 전 조회 963
12년 전 조회 764
12년 전 조회 1,856
12년 전 조회 5,867
12년 전 조회 1,468
12년 전 조회 4,705
12년 전 조회 930
12년 전 조회 4,093
12년 전 조회 1,242
12년 전 조회 1,105
12년 전 조회 1,678
12년 전 조회 1,316
12년 전 조회 567
12년 전 조회 540
12년 전 조회 2만
12년 전 조회 503
🐛 버그신고