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,575
12년 전 조회 1,066
12년 전 조회 1,090
12년 전 조회 4,454
12년 전 조회 1,507
12년 전 조회 1,647
12년 전 조회 5,507
12년 전 조회 3,272
12년 전 조회 2,150
12년 전 조회 1,312
12년 전 조회 3,499
12년 전 조회 2,533
12년 전 조회 2,239
12년 전 조회 1,859
12년 전 조회 1,551
12년 전 조회 1,546
12년 전 조회 1,298
12년 전 조회 2,416
12년 전 조회 1,690
12년 전 조회 1,365
12년 전 조회 2,448
12년 전 조회 1,630
12년 전 조회 2,240
12년 전 조회 3,459
12년 전 조회 1,246
12년 전 조회 2,215
12년 전 조회 1,054
12년 전 조회 1,542
12년 전 조회 2,130
12년 전 조회 1,765
12년 전 조회 4,574
12년 전 조회 2,675
12년 전 조회 2,843
12년 전 조회 1,233
12년 전 조회 8,556
12년 전 조회 3,350
12년 전 조회 1,448
12년 전 조회 1,302
12년 전 조회 2,697
12년 전 조회 5,377
12년 전 조회 3,429
12년 전 조회 1,359
12년 전 조회 1.3만
12년 전 조회 1,212
12년 전 조회 627
12년 전 조회 3,941
12년 전 조회 1,470
12년 전 조회 9,370
12년 전 조회 802
12년 전 조회 1,256
12년 전 조회 3,234
12년 전 조회 863
12년 전 조회 1,786
12년 전 조회 3,657
12년 전 조회 1,086
12년 전 조회 968
12년 전 조회 5,315
12년 전 조회 1,442
12년 전 조회 774
12년 전 조회 2,739
12년 전 조회 2,498
12년 전 조회 1,520
12년 전 조회 2,955
12년 전 조회 6,562
12년 전 조회 2,150
12년 전 조회 756
12년 전 조회 1,918
12년 전 조회 1,872
12년 전 조회 2,621
12년 전 조회 612
12년 전 조회 1,708
12년 전 조회 786
12년 전 조회 1,785
12년 전 조회 2,700
12년 전 조회 1,258
12년 전 조회 3,894
12년 전 조회 9,978
12년 전 조회 1,134
12년 전 조회 2,456
12년 전 조회 2,138
12년 전 조회 2,994
12년 전 조회 6,025
12년 전 조회 2,650
12년 전 조회 2,984
12년 전 조회 976
12년 전 조회 780
12년 전 조회 1,871
12년 전 조회 5,880
12년 전 조회 1,484
12년 전 조회 4,721
12년 전 조회 945
12년 전 조회 4,108
12년 전 조회 1,255
12년 전 조회 1,116
12년 전 조회 1,698
12년 전 조회 1,330
12년 전 조회 581
12년 전 조회 558
12년 전 조회 2만
12년 전 조회 520
🐛 버그신고