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,978
13년 전 조회 2,440
13년 전 조회 2,451
13년 전 조회 5,835
13년 전 조회 2,887
13년 전 조회 3,062
13년 전 조회 6,932
13년 전 조회 4,636
13년 전 조회 3,555
13년 전 조회 2,735
13년 전 조회 4,917
13년 전 조회 3,912
13년 전 조회 3,598
13년 전 조회 3,280
13년 전 조회 2,962
13년 전 조회 2,932
13년 전 조회 2,689
13년 전 조회 3,813
13년 전 조회 3,119
13년 전 조회 2,751
13년 전 조회 3,831
13년 전 조회 3,044
13년 전 조회 3,629
13년 전 조회 4,862
13년 전 조회 2,620
13년 전 조회 3,587
13년 전 조회 2,429
13년 전 조회 2,910
13년 전 조회 3,527
13년 전 조회 3,166
13년 전 조회 5,971
13년 전 조회 4,079
13년 전 조회 4,256
13년 전 조회 2,639
13년 전 조회 9,951
13년 전 조회 4,784
13년 전 조회 2,847
13년 전 조회 2,713
13년 전 조회 4,107
13년 전 조회 6,828
13년 전 조회 4,823
13년 전 조회 2,752
13년 전 조회 1.5만
13년 전 조회 2,633
13년 전 조회 2,056
13년 전 조회 5,209
13년 전 조회 2,683
13년 전 조회 1.1만
13년 전 조회 2,236
13년 전 조회 2,526
13년 전 조회 4,665
13년 전 조회 2,280
13년 전 조회 3,179
13년 전 조회 5,110
13년 전 조회 2,482
13년 전 조회 2,382
13년 전 조회 6,765
13년 전 조회 2,871
13년 전 조회 2,182
13년 전 조회 3,937
13년 전 조회 3,955
13년 전 조회 2,930
13년 전 조회 4,371
13년 전 조회 8,020
13년 전 조회 3,586
13년 전 조회 2,193
13년 전 조회 3,340
13년 전 조회 3,283
13년 전 조회 4,052
13년 전 조회 2,052
13년 전 조회 3,135
13년 전 조회 2,064
13년 전 조회 3,209
13년 전 조회 4,134
13년 전 조회 2,500
13년 전 조회 5,340
13년 전 조회 1.1만
13년 전 조회 2,572
13년 전 조회 3,958
13년 전 조회 3,554
13년 전 조회 4,298
13년 전 조회 7,494
13년 전 조회 3,938
13년 전 조회 4,441
13년 전 조회 2,455
13년 전 조회 2,205
13년 전 조회 3,304
13년 전 조회 7,329
13년 전 조회 2,895
13년 전 조회 6,184
13년 전 조회 2,189
13년 전 조회 5,552
13년 전 조회 2,713
13년 전 조회 2,565
13년 전 조회 2,898
13년 전 조회 2,738
13년 전 조회 1,993
13년 전 조회 1,964
13년 전 조회 2.2만
13년 전 조회 1,933