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년 전 조회 3,329
12년 전 조회 1,790
12년 전 조회 1,841
12년 전 조회 5,207
12년 전 조회 2,266
12년 전 조회 2,446
12년 전 조회 6,271
12년 전 조회 3,967
12년 전 조회 2,935
12년 전 조회 2,081
12년 전 조회 4,253
12년 전 조회 3,264
12년 전 조회 2,944
12년 전 조회 2,615
12년 전 조회 2,297
12년 전 조회 2,317
12년 전 조회 2,052
12년 전 조회 3,129
12년 전 조회 2,447
12년 전 조회 2,151
12년 전 조회 3,214
12년 전 조회 2,398
12년 전 조회 2,987
12년 전 조회 4,206
12년 전 조회 1,962
12년 전 조회 2,942
12년 전 조회 1,801
12년 전 조회 2,282
12년 전 조회 2,925
12년 전 조회 2,533
12년 전 조회 5,339
12년 전 조회 3,456
12년 전 조회 3,647
12년 전 조회 2,012
12년 전 조회 9,335
12년 전 조회 4,148
12년 전 조회 2,207
12년 전 조회 2,075
12년 전 조회 3,508
12년 전 조회 6,193
12년 전 조회 4,212
12년 전 조회 2,120
12년 전 조회 1.4만
12년 전 조회 1,995
12년 전 조회 1,422
12년 전 조회 4,790
12년 전 조회 2,270
13년 전 조회 1만
13년 전 조회 1,598
13년 전 조회 2,039
13년 전 조회 4,045
13년 전 조회 1,679
13년 전 조회 2,578
13년 전 조회 4,566
13년 전 조회 1,874
13년 전 조회 1,764
13년 전 조회 6,132
13년 전 조회 2,263
13년 전 조회 1,595
13년 전 조회 3,331
13년 전 조회 3,319
13년 전 조회 2,307
13년 전 조회 3,718
13년 전 조회 7,409
13년 전 조회 2,989
13년 전 조회 1,551
13년 전 조회 2,713
13년 전 조회 2,686
13년 전 조회 3,431
13년 전 조회 1,405
13년 전 조회 2,497
13년 전 조회 1,569
13년 전 조회 2,584
13년 전 조회 3,486
13년 전 조회 2,054
13년 전 조회 4,688
13년 전 조회 1.1만
13년 전 조회 1,950
13년 전 조회 3,321
13년 전 조회 2,943
13년 전 조회 3,867
13년 전 조회 6,855
13년 전 조회 3,512
13년 전 조회 3,831
13년 전 조회 1,792
13년 전 조회 1,568
13년 전 조회 2,673
13년 전 조회 6,673
13년 전 조회 2,291
13년 전 조회 5,530
13년 전 조회 1,712
13년 전 조회 4,929
13년 전 조회 2,095
13년 전 조회 1,899
13년 전 조회 2,453
13년 전 조회 2,085
13년 전 조회 1,351
13년 전 조회 1,327
13년 전 조회 2.1만
13년 전 조회 1,296