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,598
12년 전 조회 1,087
12년 전 조회 1,113
12년 전 조회 4,475
12년 전 조회 1,529
12년 전 조회 1,670
12년 전 조회 5,534
12년 전 조회 3,292
12년 전 조회 2,170
12년 전 조회 1,329
12년 전 조회 3,520
12년 전 조회 2,553
12년 전 조회 2,253
12년 전 조회 1,873
12년 전 조회 1,571
12년 전 조회 1,570
12년 전 조회 1,318
12년 전 조회 2,435
12년 전 조회 1,703
12년 전 조회 1,389
12년 전 조회 2,467
12년 전 조회 1,645
12년 전 조회 2,256
12년 전 조회 3,479
12년 전 조회 1,265
12년 전 조회 2,237
12년 전 조회 1,067
12년 전 조회 1,558
12년 전 조회 2,145
12년 전 조회 1,790
12년 전 조회 4,591
12년 전 조회 2,691
12년 전 조회 2,869
12년 전 조회 1,256
12년 전 조회 8,568
12년 전 조회 3,364
12년 전 조회 1,471
12년 전 조회 1,317
12년 전 조회 2,718
12년 전 조회 5,395
12년 전 조회 3,446
12년 전 조회 1,370
12년 전 조회 1.4만
12년 전 조회 1,233
12년 전 조회 639
12년 전 조회 3,967
12년 전 조회 1,489
12년 전 조회 9,378
12년 전 조회 814
12년 전 조회 1,271
12년 전 조회 3,250
12년 전 조회 880
12년 전 조회 1,799
12년 전 조회 3,678
12년 전 조회 1,105
12년 전 조회 993
12년 전 조회 5,331
12년 전 조회 1,459
12년 전 조회 788
12년 전 조회 2,740
12년 전 조회 2,518
12년 전 조회 1,533
12년 전 조회 2,970
12년 전 조회 6,575
12년 전 조회 2,172
12년 전 조회 770
12년 전 조회 1,932
12년 전 조회 1,887
12년 전 조회 2,636
12년 전 조회 629
12년 전 조회 1,722
12년 전 조회 802
12년 전 조회 1,801
12년 전 조회 2,718
12년 전 조회 1,273
12년 전 조회 3,908
12년 전 조회 9,991
12년 전 조회 1,146
12년 전 조회 2,476
12년 전 조회 2,150
12년 전 조회 3,013
12년 전 조회 6,045
12년 전 조회 2,670
12년 전 조회 2,990
12년 전 조회 995
12년 전 조회 793
12년 전 조회 1,880
12년 전 조회 5,889
12년 전 조회 1,497
12년 전 조회 4,730
12년 전 조회 960
12년 전 조회 4,127
12년 전 조회 1,271
12년 전 조회 1,131
12년 전 조회 1,710
12년 전 조회 1,345
12년 전 조회 594
12년 전 조회 566
12년 전 조회 2만
12년 전 조회 532
🐛 버그신고