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,566
12년 전 조회 1,056
12년 전 조회 1,078
12년 전 조회 4,445
12년 전 조회 1,497
12년 전 조회 1,635
12년 전 조회 5,498
12년 전 조회 3,266
12년 전 조회 2,141
12년 전 조회 1,301
12년 전 조회 3,487
12년 전 조회 2,521
12년 전 조회 2,225
12년 전 조회 1,847
12년 전 조회 1,541
12년 전 조회 1,530
12년 전 조회 1,286
12년 전 조회 2,404
12년 전 조회 1,675
12년 전 조회 1,352
12년 전 조회 2,438
12년 전 조회 1,616
12년 전 조회 2,228
12년 전 조회 3,448
12년 전 조회 1,232
12년 전 조회 2,204
12년 전 조회 1,045
12년 전 조회 1,530
12년 전 조회 2,122
12년 전 조회 1,754
12년 전 조회 4,567
12년 전 조회 2,667
12년 전 조회 2,833
12년 전 조회 1,229
12년 전 조회 8,544
12년 전 조회 3,338
12년 전 조회 1,442
12년 전 조회 1,290
12년 전 조회 2,688
12년 전 조회 5,365
12년 전 조회 3,414
12년 전 조회 1,347
12년 전 조회 1.3만
12년 전 조회 1,204
12년 전 조회 615
12년 전 조회 3,935
12년 전 조회 1,465
12년 전 조회 9,366
12년 전 조회 788
12년 전 조회 1,242
12년 전 조회 3,223
12년 전 조회 850
12년 전 조회 1,775
12년 전 조회 3,647
12년 전 조회 1,074
12년 전 조회 961
12년 전 조회 5,306
12년 전 조회 1,434
12년 전 조회 764
12년 전 조회 2,738
12년 전 조회 2,488
12년 전 조회 1,510
12년 전 조회 2,944
12년 전 조회 6,551
12년 전 조회 2,146
12년 전 조회 747
12년 전 조회 1,909
12년 전 조회 1,864
12년 전 조회 2,612
12년 전 조회 602
12년 전 조회 1,696
12년 전 조회 777
12년 전 조회 1,781
12년 전 조회 2,689
12년 전 조회 1,246
12년 전 조회 3,884
12년 전 조회 9,966
12년 전 조회 1,121
12년 전 조회 2,446
12년 전 조회 2,129
12년 전 조회 2,986
12년 전 조회 6,015
12년 전 조회 2,644
12년 전 조회 2,975
12년 전 조회 966
12년 전 조회 769
12년 전 조회 1,860
12년 전 조회 5,873
12년 전 조회 1,474
12년 전 조회 4,711
12년 전 조회 933
12년 전 조회 4,095
12년 전 조회 1,245
12년 전 조회 1,109
12년 전 조회 1,684
12년 전 조회 1,319
12년 전 조회 570
12년 전 조회 544
12년 전 조회 2만
12년 전 조회 508
🐛 버그신고