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,610
12년 전 조회 1,098
12년 전 조회 1,124
12년 전 조회 4,489
12년 전 조회 1,540
12년 전 조회 1,686
12년 전 조회 5,547
12년 전 조회 3,303
12년 전 조회 2,181
12년 전 조회 1,341
12년 전 조회 3,526
12년 전 조회 2,568
12년 전 조회 2,260
12년 전 조회 1,883
12년 전 조회 1,583
12년 전 조회 1,584
12년 전 조회 1,326
12년 전 조회 2,445
12년 전 조회 1,716
12년 전 조회 1,398
12년 전 조회 2,476
12년 전 조회 1,653
12년 전 조회 2,270
12년 전 조회 3,488
12년 전 조회 1,273
12년 전 조회 2,247
12년 전 조회 1,079
12년 전 조회 1,571
12년 전 조회 2,156
12년 전 조회 1,798
12년 전 조회 4,603
12년 전 조회 2,700
12년 전 조회 2,878
12년 전 조회 1,265
12년 전 조회 8,577
12년 전 조회 3,370
12년 전 조회 1,477
12년 전 조회 1,325
12년 전 조회 2,729
12년 전 조회 5,406
12년 전 조회 3,452
12년 전 조회 1,379
12년 전 조회 1.4만
12년 전 조회 1,243
12년 전 조회 653
12년 전 조회 3,972
12년 전 조회 1,495
12년 전 조회 9,388
12년 전 조회 824
12년 전 조회 1,280
12년 전 조회 3,258
12년 전 조회 886
12년 전 조회 1,802
12년 전 조회 3,690
12년 전 조회 1,113
12년 전 조회 1,002
12년 전 조회 5,341
12년 전 조회 1,471
12년 전 조회 800
12년 전 조회 2,740
12년 전 조회 2,527
12년 전 조회 1,545
12년 전 조회 2,978
12년 전 조회 6,590
12년 전 조회 2,182
12년 전 조회 781
12년 전 조회 1,944
12년 전 조회 1,896
12년 전 조회 2,646
12년 전 조회 639
12년 전 조회 1,725
12년 전 조회 810
12년 전 조회 1,808
12년 전 조회 2,727
12년 전 조회 1,284
12년 전 조회 3,917
12년 전 조회 9,997
12년 전 조회 1,157
12년 전 조회 2,486
12년 전 조회 2,158
12년 전 조회 3,021
12년 전 조회 6,059
12년 전 조회 2,676
12년 전 조회 2,996
12년 전 조회 1,006
12년 전 조회 805
12년 전 조회 1,885
12년 전 조회 5,898
12년 전 조회 1,505
12년 전 조회 4,739
12년 전 조회 969
12년 전 조회 4,137
12년 전 조회 1,279
12년 전 조회 1,136
12년 전 조회 1,714
12년 전 조회 1,351
12년 전 조회 602
12년 전 조회 573
12년 전 조회 2만
12년 전 조회 541
🐛 버그신고