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,336
12년 전 조회 1,797
12년 전 조회 1,851
12년 전 조회 5,215
12년 전 조회 2,275
12년 전 조회 2,452
12년 전 조회 6,279
12년 전 조회 3,984
12년 전 조회 2,946
12년 전 조회 2,090
12년 전 조회 4,258
12년 전 조회 3,270
12년 전 조회 2,952
12년 전 조회 2,623
12년 전 조회 2,304
12년 전 조회 2,324
12년 전 조회 2,060
12년 전 조회 3,138
12년 전 조회 2,455
12년 전 조회 2,158
12년 전 조회 3,219
12년 전 조회 2,410
12년 전 조회 2,997
12년 전 조회 4,215
12년 전 조회 1,971
12년 전 조회 2,950
12년 전 조회 1,807
12년 전 조회 2,286
12년 전 조회 2,932
12년 전 조회 2,545
12년 전 조회 5,346
12년 전 조회 3,467
12년 전 조회 3,658
12년 전 조회 2,023
12년 전 조회 9,343
12년 전 조회 4,154
12년 전 조회 2,212
12년 전 조회 2,082
12년 전 조회 3,517
12년 전 조회 6,201
12년 전 조회 4,218
12년 전 조회 2,126
12년 전 조회 1.4만
13년 전 조회 2,003
13년 전 조회 1,424
13년 전 조회 4,792
13년 전 조회 2,275
13년 전 조회 1만
13년 전 조회 1,602
13년 전 조회 2,043
13년 전 조회 4,052
13년 전 조회 1,685
13년 전 조회 2,585
13년 전 조회 4,572
13년 전 조회 1,879
13년 전 조회 1,770
13년 전 조회 6,141
13년 전 조회 2,272
13년 전 조회 1,601
13년 전 조회 3,338
13년 전 조회 3,327
13년 전 조회 2,312
13년 전 조회 3,726
13년 전 조회 7,418
13년 전 조회 2,998
13년 전 조회 1,557
13년 전 조회 2,720
13년 전 조회 2,694
13년 전 조회 3,441
13년 전 조회 1,413
13년 전 조회 2,505
13년 전 조회 1,570
13년 전 조회 2,593
13년 전 조회 3,496
13년 전 조회 2,057
13년 전 조회 4,694
13년 전 조회 1.1만
13년 전 조회 1,955
13년 전 조회 3,327
13년 전 조회 2,947
13년 전 조회 3,869
13년 전 조회 6,862
13년 전 조회 3,515
13년 전 조회 3,837
13년 전 조회 1,802
13년 전 조회 1,578
13년 전 조회 2,676
13년 전 조회 6,683
13년 전 조회 2,298
13년 전 조회 5,536
13년 전 조회 1,715
13년 전 조회 4,936
13년 전 조회 2,101
13년 전 조회 1,903
13년 전 조회 2,457
13년 전 조회 2,093
13년 전 조회 1,355
13년 전 조회 1,334
13년 전 조회 2.1만
13년 전 조회 1,301