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,574
12년 전 조회 1,063
12년 전 조회 1,090
12년 전 조회 4,452
12년 전 조회 1,504
12년 전 조회 1,645
12년 전 조회 5,505
12년 전 조회 3,272
12년 전 조회 2,148
12년 전 조회 1,308
12년 전 조회 3,499
12년 전 조회 2,532
12년 전 조회 2,238
12년 전 조회 1,858
12년 전 조회 1,550
12년 전 조회 1,543
12년 전 조회 1,296
12년 전 조회 2,414
12년 전 조회 1,687
12년 전 조회 1,362
12년 전 조회 2,448
12년 전 조회 1,626
12년 전 조회 2,238
12년 전 조회 3,459
12년 전 조회 1,243
12년 전 조회 2,212
12년 전 조회 1,052
12년 전 조회 1,541
12년 전 조회 2,129
12년 전 조회 1,765
12년 전 조회 4,574
12년 전 조회 2,673
12년 전 조회 2,842
12년 전 조회 1,233
12년 전 조회 8,555
12년 전 조회 3,346
12년 전 조회 1,445
12년 전 조회 1,299
12년 전 조회 2,696
12년 전 조회 5,372
12년 전 조회 3,425
12년 전 조회 1,356
12년 전 조회 1.3만
12년 전 조회 1,212
12년 전 조회 624
12년 전 조회 3,938
12년 전 조회 1,469
12년 전 조회 9,369
12년 전 조회 796
12년 전 조회 1,253
12년 전 조회 3,232
12년 전 조회 861
12년 전 조회 1,783
12년 전 조회 3,653
12년 전 조회 1,083
12년 전 조회 967
12년 전 조회 5,314
12년 전 조회 1,441
12년 전 조회 770
12년 전 조회 2,739
12년 전 조회 2,496
12년 전 조회 1,516
12년 전 조회 2,949
12년 전 조회 6,558
12년 전 조회 2,149
12년 전 조회 754
12년 전 조회 1,915
12년 전 조회 1,869
12년 전 조회 2,618
12년 전 조회 609
12년 전 조회 1,706
12년 전 조회 784
12년 전 조회 1,785
12년 전 조회 2,699
12년 전 조회 1,256
12년 전 조회 3,893
12년 전 조회 9,973
12년 전 조회 1,134
12년 전 조회 2,453
12년 전 조회 2,136
12년 전 조회 2,993
12년 전 조회 6,025
12년 전 조회 2,648
12년 전 조회 2,984
12년 전 조회 975
12년 전 조회 777
12년 전 조회 1,868
12년 전 조회 5,876
12년 전 조회 1,480
12년 전 조회 4,719
12년 전 조회 942
12년 전 조회 4,104
12년 전 조회 1,252
12년 전 조회 1,114
12년 전 조회 1,694
12년 전 조회 1,330
12년 전 조회 577
12년 전 조회 553
12년 전 조회 2만
12년 전 조회 515
🐛 버그신고