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,664
12년 전 조회 1,155
12년 전 조회 1,187
12년 전 조회 4,555
12년 전 조회 1,588
12년 전 조회 1,734
12년 전 조회 5,614
12년 전 조회 3,358
12년 전 조회 2,245
12년 전 조회 1,396
12년 전 조회 3,591
12년 전 조회 2,609
12년 전 조회 2,317
12년 전 조회 1,934
12년 전 조회 1,640
12년 전 조회 1,631
12년 전 조회 1,382
12년 전 조회 2,497
12년 전 조회 1,771
12년 전 조회 1,449
12년 전 조회 2,525
12년 전 조회 1,715
12년 전 조회 2,329
12년 전 조회 3,555
12년 전 조회 1,336
12년 전 조회 2,298
12년 전 조회 1,140
12년 전 조회 1,630
12년 전 조회 2,210
12년 전 조회 1,852
12년 전 조회 4,662
12년 전 조회 2,765
12년 전 조회 2,933
12년 전 조회 1,319
12년 전 조회 8,635
12년 전 조회 3,432
12년 전 조회 1,531
12년 전 조회 1,384
12년 전 조회 2,786
12년 전 조회 5,466
12년 전 조회 3,514
12년 전 조회 1,436
12년 전 조회 1.4만
12년 전 조회 1,290
12년 전 조회 710
12년 전 조회 4,029
12년 전 조회 1,546
12년 전 조회 9,448
12년 전 조회 878
12년 전 조회 1,338
12년 전 조회 3,309
12년 전 조회 941
12년 전 조회 1,859
12년 전 조회 3,763
12년 전 조회 1,173
12년 전 조회 1,059
12년 전 조회 5,401
12년 전 조회 1,525
12년 전 조회 852
12년 전 조회 2,745
12년 전 조회 2,580
12년 전 조회 1,604
12년 전 조회 3,027
12년 전 조회 6,644
12년 전 조회 2,240
12년 전 조회 829
12년 전 조회 2,008
12년 전 조회 1,952
12년 전 조회 2,702
12년 전 조회 702
12년 전 조회 1,789
12년 전 조회 875
12년 전 조회 1,865
12년 전 조회 2,774
12년 전 조회 1,339
12년 전 조회 3,975
12년 전 조회 1만
12년 전 조회 1,202
12년 전 조회 2,538
12년 전 조회 2,216
12년 전 조회 3,080
12년 전 조회 6,118
12년 전 조회 2,730
12년 전 조회 3,063
12년 전 조회 1,066
12년 전 조회 859
12년 전 조회 1,951
12년 전 조회 5,954
12년 전 조회 1,573
12년 전 조회 4,800
12년 전 조회 1,025
12년 전 조회 4,192
12년 전 조회 1,342
12년 전 조회 1,191
12년 전 조회 1,776
12년 전 조회 1,401
12년 전 조회 663
12년 전 조회 637
12년 전 조회 2.1만
12년 전 조회 602
🐛 버그신고