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,671
12년 전 조회 2,129
12년 전 조회 2,163
12년 전 조회 5,531
12년 전 조회 2,585
12년 전 조회 2,765
12년 전 조회 6,597
12년 전 조회 4,324
12년 전 조회 3,253
12년 전 조회 2,428
12년 전 조회 4,605
12년 전 조회 3,588
12년 전 조회 3,297
13년 전 조회 2,956
13년 전 조회 2,636
13년 전 조회 2,651
13년 전 조회 2,379
13년 전 조회 3,473
13년 전 조회 2,791
13년 전 조회 2,451
13년 전 조회 3,510
13년 전 조회 2,737
13년 전 조회 3,307
13년 전 조회 4,533
13년 전 조회 2,299
13년 전 조회 3,309
13년 전 조회 2,140
13년 전 조회 2,594
13년 전 조회 3,245
13년 전 조회 2,875
13년 전 조회 5,664
13년 전 조회 3,774
13년 전 조회 3,974
13년 전 조회 2,342
13년 전 조회 9,656
13년 전 조회 4,479
13년 전 조회 2,536
13년 전 조회 2,397
13년 전 조회 3,813
13년 전 조회 6,532
13년 전 조회 4,532
13년 전 조회 2,445
13년 전 조회 1.5만
13년 전 조회 2,327
13년 전 조회 1,736
13년 전 조회 5,030
13년 전 조회 2,506
13년 전 조회 1만
13년 전 조회 1,926
13년 전 조회 2,324
13년 전 조회 4,385
13년 전 조회 1,993
13년 전 조회 2,892
13년 전 조회 4,819
13년 전 조회 2,202
13년 전 조회 2,106
13년 전 조회 6,477
13년 전 조회 2,568
13년 전 조회 1,901
13년 전 조회 3,637
13년 전 조회 3,659
13년 전 조회 2,617
13년 전 조회 4,051
13년 전 조회 7,721
13년 전 조회 3,315
13년 전 조회 1,885
13년 전 조회 3,035
13년 전 조회 2,995
13년 전 조회 3,768
13년 전 조회 1,728
13년 전 조회 2,841
13년 전 조회 1,855
13년 전 조회 2,928
13년 전 조회 3,819
13년 전 조회 2,297
13년 전 조회 5,025
13년 전 조회 1.1만
13년 전 조회 2,290
13년 전 조회 3,654
13년 전 조회 3,265
13년 전 조회 4,120
13년 전 조회 7,179
13년 전 조회 3,751
13년 전 조회 4,141
13년 전 조회 2,128
13년 전 조회 1,905
13년 전 조회 2,995
13년 전 조회 7,007
13년 전 조회 2,605
13년 전 조회 5,872
13년 전 조회 1,981
13년 전 조회 5,245
13년 전 조회 2,412
13년 전 조회 2,237
13년 전 조회 2,711
13년 전 조회 2,425
13년 전 조회 1,674
13년 전 조회 1,657
13년 전 조회 2.2만
13년 전 조회 1,619