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개

댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
13년 전 조회 3,859
13년 전 조회 2,300
13년 전 조회 2,315
13년 전 조회 5,701
13년 전 조회 2,758
13년 전 조회 2,924
13년 전 조회 6,792
13년 전 조회 4,503
13년 전 조회 3,423
13년 전 조회 2,618
13년 전 조회 4,777
13년 전 조회 3,772
13년 전 조회 3,476
13년 전 조회 3,124
13년 전 조회 2,821
13년 전 조회 2,806
13년 전 조회 2,533
13년 전 조회 3,660
13년 전 조회 2,959
13년 전 조회 2,609
13년 전 조회 3,678
13년 전 조회 2,898
13년 전 조회 3,489
13년 전 조회 4,723
13년 전 조회 2,483
13년 전 조회 3,466
13년 전 조회 2,308
13년 전 조회 2,760
13년 전 조회 3,400
13년 전 조회 3,045
13년 전 조회 5,838
13년 전 조회 3,948
13년 전 조회 4,140
13년 전 조회 2,485
13년 전 조회 9,816
13년 전 조회 4,656
13년 전 조회 2,715
13년 전 조회 2,582
13년 전 조회 3,972
13년 전 조회 6,691
13년 전 조회 4,709
13년 전 조회 2,637
13년 전 조회 1.5만
13년 전 조회 2,495
13년 전 조회 1,925
13년 전 조회 5,147
13년 전 조회 2,635
13년 전 조회 1.1만
13년 전 조회 2,098
13년 전 조회 2,456
13년 전 조회 4,547
13년 전 조회 2,162
13년 전 조회 3,058
13년 전 조회 4,990
13년 전 조회 2,367
13년 전 조회 2,259
13년 전 조회 6,628
13년 전 조회 2,730
13년 전 조회 2,040
13년 전 조회 3,822
13년 전 조회 3,831
13년 전 조회 2,796
13년 전 조회 4,231
13년 전 조회 7,902
13년 전 조회 3,461
13년 전 조회 2,067
13년 전 조회 3,214
13년 전 조회 3,157
13년 전 조회 3,932
13년 전 조회 1,914
13년 전 조회 3,015
13년 전 조회 2,002
13년 전 조회 3,095
13년 전 조회 4,001
13년 전 조회 2,434
13년 전 조회 5,196
13년 전 조회 1.1만
13년 전 조회 2,456
13년 전 조회 3,812
13년 전 조회 3,422
13년 전 조회 4,233
13년 전 조회 7,346
13년 전 조회 3,874
13년 전 조회 4,321
13년 전 조회 2,306
13년 전 조회 2,075
13년 전 조회 3,171
13년 전 조회 7,187
13년 전 조회 2,764
13년 전 조회 6,058
13년 전 조회 2,134
13년 전 조회 5,418
13년 전 조회 2,580
13년 전 조회 2,426
13년 전 조회 2,840
13년 전 조회 2,606
13년 전 조회 1,853
13년 전 조회 1,842
13년 전 조회 2.2만
13년 전 조회 1,796