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,633
12년 전 조회 1,114
12년 전 조회 1,142
12년 전 조회 4,513
12년 전 조회 1,556
12년 전 조회 1,700
12년 전 조회 5,565
12년 전 조회 3,324
12년 전 조회 2,203
12년 전 조회 1,360
12년 전 조회 3,551
12년 전 조회 2,583
12년 전 조회 2,280
12년 전 조회 1,901
12년 전 조회 1,603
12년 전 조회 1,596
12년 전 조회 1,346
12년 전 조회 2,462
12년 전 조회 1,735
12년 전 조회 1,421
12년 전 조회 2,492
12년 전 조회 1,675
12년 전 조회 2,290
12년 전 조회 3,513
12년 전 조회 1,300
12년 전 조회 2,268
12년 전 조회 1,107
12년 전 조회 1,587
12년 전 조회 2,177
12년 전 조회 1,818
12년 전 조회 4,621
12년 전 조회 2,723
12년 전 조회 2,898
12년 전 조회 1,287
12년 전 조회 8,594
12년 전 조회 3,390
12년 전 조회 1,495
12년 전 조회 1,345
12년 전 조회 2,746
12년 전 조회 5,425
12년 전 조회 3,472
12년 전 조회 1,394
12년 전 조회 1.4만
12년 전 조회 1,256
12년 전 조회 666
12년 전 조회 3,992
12년 전 조회 1,516
12년 전 조회 9,405
12년 전 조회 839
12년 전 조회 1,299
12년 전 조회 3,273
12년 전 조회 901
12년 전 조회 1,821
12년 전 조회 3,718
12년 전 조회 1,132
12년 전 조회 1,017
12년 전 조회 5,364
12년 전 조회 1,494
12년 전 조회 811
12년 전 조회 2,741
12년 전 조회 2,546
12년 전 조회 1,564
12년 전 조회 2,994
12년 전 조회 6,605
12년 전 조회 2,200
12년 전 조회 796
12년 전 조회 1,962
12년 전 조회 1,912
12년 전 조회 2,669
12년 전 조회 663
12년 전 조회 1,744
12년 전 조회 827
12년 전 조회 1,826
12년 전 조회 2,743
12년 전 조회 1,298
12년 전 조회 3,935
12년 전 조회 1만
12년 전 조회 1,168
12년 전 조회 2,502
12년 전 조회 2,175
12년 전 조회 3,043
12년 전 조회 6,085
12년 전 조회 2,700
12년 전 조회 3,020
12년 전 조회 1,027
12년 전 조회 824
12년 전 조회 1,902
12년 전 조회 5,921
12년 전 조회 1,525
12년 전 조회 4,754
12년 전 조회 985
12년 전 조회 4,154
12년 전 조회 1,301
12년 전 조회 1,160
12년 전 조회 1,739
12년 전 조회 1,365
12년 전 조회 624
12년 전 조회 591
12년 전 조회 2만
12년 전 조회 555
🐛 버그신고