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,888
13년 전 조회 2,345
13년 전 조회 2,351
13년 전 조회 5,738
13년 전 조회 2,797
13년 전 조회 2,966
13년 전 조회 6,840
13년 전 조회 4,542
13년 전 조회 3,455
13년 전 조회 2,656
13년 전 조회 4,831
13년 전 조회 3,813
13년 전 조회 3,514
13년 전 조회 3,178
13년 전 조회 2,856
13년 전 조회 2,851
13년 전 조회 2,581
13년 전 조회 3,718
13년 전 조회 3,014
13년 전 조회 2,645
13년 전 조회 3,717
13년 전 조회 2,942
13년 전 조회 3,524
13년 전 조회 4,761
13년 전 조회 2,532
13년 전 조회 3,503
13년 전 조회 2,346
13년 전 조회 2,807
13년 전 조회 3,436
13년 전 조회 3,078
13년 전 조회 5,878
13년 전 조회 3,982
13년 전 조회 4,169
13년 전 조회 2,526
13년 전 조회 9,860
13년 전 조회 4,686
13년 전 조회 2,754
13년 전 조회 2,623
13년 전 조회 4,014
13년 전 조회 6,737
13년 전 조회 4,751
13년 전 조회 2,674
13년 전 조회 1.5만
13년 전 조회 2,538
13년 전 조회 1,961
13년 전 조회 5,157
13년 전 조회 2,647
13년 전 조회 1.1만
13년 전 조회 2,140
13년 전 조회 2,469
13년 전 조회 4,582
13년 전 조회 2,195
13년 전 조회 3,095
13년 전 조회 5,023
13년 전 조회 2,403
13년 전 조회 2,298
13년 전 조회 6,677
13년 전 조회 2,771
13년 전 조회 2,084
13년 전 조회 3,853
13년 전 조회 3,868
13년 전 조회 2,838
13년 전 조회 4,270
13년 전 조회 7,942
13년 전 조회 3,502
13년 전 조회 2,113
13년 전 조회 3,252
13년 전 조회 3,201
13년 전 조회 3,970
13년 전 조회 1,965
13년 전 조회 3,066
13년 전 조회 2,018
13년 전 조회 3,129
13년 전 조회 4,049
13년 전 조회 2,445
13년 전 조회 5,253
13년 전 조회 1.1만
13년 전 조회 2,504
13년 전 조회 3,846
13년 전 조회 3,475
13년 전 조회 4,249
13년 전 조회 7,388
13년 전 조회 3,882
13년 전 조회 4,365
13년 전 조회 2,357
13년 전 조회 2,126
13년 전 조회 3,220
13년 전 조회 7,223
13년 전 조회 2,815
13년 전 조회 6,106
13년 전 조회 2,142
13년 전 조회 5,465
13년 전 조회 2,628
13년 전 조회 2,478
13년 전 조회 2,853
13년 전 조회 2,657
13년 전 조회 1,908
13년 전 조회 1,899
13년 전 조회 2.2만
13년 전 조회 1,838