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,566
12년 전 조회 1,057
12년 전 조회 1,080
12년 전 조회 4,447
12년 전 조회 1,499
12년 전 조회 1,639
12년 전 조회 5,500
12년 전 조회 3,267
12년 전 조회 2,142
12년 전 조회 1,302
12년 전 조회 3,489
12년 전 조회 2,522
12년 전 조회 2,227
12년 전 조회 1,847
12년 전 조회 1,543
12년 전 조회 1,533
12년 전 조회 1,288
12년 전 조회 2,405
12년 전 조회 1,680
12년 전 조회 1,353
12년 전 조회 2,441
12년 전 조회 1,618
12년 전 조회 2,229
12년 전 조회 3,451
12년 전 조회 1,234
12년 전 조회 2,206
12년 전 조회 1,045
12년 전 조회 1,531
12년 전 조회 2,122
12년 전 조회 1,757
12년 전 조회 4,568
12년 전 조회 2,668
12년 전 조회 2,835
12년 전 조회 1,230
12년 전 조회 8,545
12년 전 조회 3,341
12년 전 조회 1,442
12년 전 조회 1,292
12년 전 조회 2,690
12년 전 조회 5,365
12년 전 조회 3,416
12년 전 조회 1,348
12년 전 조회 1.3만
12년 전 조회 1,207
12년 전 조회 615
12년 전 조회 3,935
12년 전 조회 1,468
12년 전 조회 9,366
12년 전 조회 789
12년 전 조회 1,243
12년 전 조회 3,224
12년 전 조회 852
12년 전 조회 1,778
12년 전 조회 3,648
12년 전 조회 1,076
12년 전 조회 963
12년 전 조회 5,308
12년 전 조회 1,436
12년 전 조회 766
12년 전 조회 2,738
12년 전 조회 2,490
12년 전 조회 1,511
12년 전 조회 2,945
12년 전 조회 6,552
12년 전 조회 2,147
12년 전 조회 747
12년 전 조회 1,910
12년 전 조회 1,864
12년 전 조회 2,614
12년 전 조회 603
12년 전 조회 1,697
12년 전 조회 778
12년 전 조회 1,782
12년 전 조회 2,691
12년 전 조회 1,248
12년 전 조회 3,886
12년 전 조회 9,967
12년 전 조회 1,122
12년 전 조회 2,447
12년 전 조회 2,130
12년 전 조회 2,986
12년 전 조회 6,019
12년 전 조회 2,645
12년 전 조회 2,976
12년 전 조회 967
12년 전 조회 769
12년 전 조회 1,861
12년 전 조회 5,873
12년 전 조회 1,474
12년 전 조회 4,711
12년 전 조회 933
12년 전 조회 4,097
12년 전 조회 1,248
12년 전 조회 1,109
12년 전 조회 1,684
12년 전 조회 1,319
12년 전 조회 572
12년 전 조회 546
12년 전 조회 2만
12년 전 조회 508
🐛 버그신고