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개

댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
13년 전 조회 4,102
13년 전 조회 2,567
13년 전 조회 2,584
13년 전 조회 5,966
13년 전 조회 3,035
13년 전 조회 3,193
13년 전 조회 7,061
13년 전 조회 4,740
13년 전 조회 3,684
13년 전 조회 2,860
13년 전 조회 5,038
13년 전 조회 4,058
13년 전 조회 3,731
13년 전 조회 3,419
13년 전 조회 3,092
13년 전 조회 3,078
13년 전 조회 2,833
13년 전 조회 3,958
13년 전 조회 3,262
13년 전 조회 2,881
13년 전 조회 3,974
13년 전 조회 3,185
13년 전 조회 3,785
13년 전 조회 4,997
13년 전 조회 2,761
13년 전 조회 3,714
13년 전 조회 2,565
13년 전 조회 3,058
13년 전 조회 3,659
13년 전 조회 3,319
13년 전 조회 6,122
13년 전 조회 4,236
13년 전 조회 4,416
13년 전 조회 2,788
13년 전 조회 1만
13년 전 조회 4,932
13년 전 조회 2,995
13년 전 조회 2,884
13년 전 조회 4,265
13년 전 조회 7,000
13년 전 조회 4,984
13년 전 조회 2,908
13년 전 조회 1.5만
13년 전 조회 2,795
13년 전 조회 2,218
13년 전 조회 5,270
13년 전 조회 2,742
13년 전 조회 1.1만
13년 전 조회 2,400
13년 전 조회 2,580
13년 전 조회 4,843
13년 전 조회 2,442
13년 전 조회 3,356
13년 전 조회 5,279
13년 전 조회 2,646
13년 전 조회 2,542
13년 전 조회 6,939
13년 전 조회 3,026
13년 전 조회 2,347
13년 전 조회 4,082
13년 전 조회 4,121
13년 전 조회 3,088
13년 전 조회 4,530
13년 전 조회 8,197
13년 전 조회 3,757
13년 전 조회 2,369
13년 전 조회 3,493
13년 전 조회 3,471
13년 전 조회 4,213
13년 전 조회 2,206
13년 전 조회 3,313
13년 전 조회 2,122
13년 전 조회 3,384
13년 전 조회 4,286
13년 전 조회 2,569
13년 전 조회 5,514
13년 전 조회 1.2만
13년 전 조회 2,737
13년 전 조회 4,121
13년 전 조회 3,738
13년 전 조회 4,363
13년 전 조회 7,671
13년 전 조회 4,004
13년 전 조회 4,626
13년 전 조회 2,649
13년 전 조회 2,365
13년 전 조회 3,478
13년 전 조회 7,502
13년 전 조회 3,064
13년 전 조회 6,361
13년 전 조회 2,257
13년 전 조회 5,723
13년 전 조회 2,888
13년 전 조회 2,718
13년 전 조회 2,952
13년 전 조회 2,907
13년 전 조회 2,163
13년 전 조회 2,134
13년 전 조회 2.2만
13년 전 조회 2,087