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,752
12년 전 조회 1,234
12년 전 조회 1,258
12년 전 조회 4,640
12년 전 조회 1,681
12년 전 조회 1,831
12년 전 조회 5,693
12년 전 조회 3,435
12년 전 조회 2,333
12년 전 조회 1,488
12년 전 조회 3,674
12년 전 조회 2,702
12년 전 조회 2,407
12년 전 조회 2,039
12년 전 조회 1,728
12년 전 조회 1,721
12년 전 조회 1,478
12년 전 조회 2,595
12년 전 조회 1,874
12년 전 조회 1,545
12년 전 조회 2,629
12년 전 조회 1,808
12년 전 조회 2,427
12년 전 조회 3,642
12년 전 조회 1,427
12년 전 조회 2,384
12년 전 조회 1,238
12년 전 조회 1,729
12년 전 조회 2,301
12년 전 조회 1,937
12년 전 조회 4,757
12년 전 조회 2,859
12년 전 조회 3,030
12년 전 조회 1,405
12년 전 조회 8,725
12년 전 조회 3,537
12년 전 조회 1,625
12년 전 조회 1,486
12년 전 조회 2,874
12년 전 조회 5,556
12년 전 조회 3,609
12년 전 조회 1,536
12년 전 조회 1.4만
12년 전 조회 1,403
12년 전 조회 809
12년 전 조회 4,121
12년 전 조회 1,624
12년 전 조회 9,518
12년 전 조회 987
12년 전 조회 1,433
12년 전 조회 3,406
12년 전 조회 1,045
12년 전 조회 1,948
12년 전 조회 3,851
12년 전 조회 1,257
12년 전 조회 1,161
12년 전 조회 5,493
12년 전 조회 1,628
12년 전 조회 955
12년 전 조회 2,773
12년 전 조회 2,685
12년 전 조회 1,700
12년 전 조회 3,137
12년 전 조회 6,747
12년 전 조회 2,336
12년 전 조회 940
12년 전 조회 2,106
12년 전 조회 2,032
12년 전 조회 2,805
12년 전 조회 795
12년 전 조회 1,891
12년 전 조회 975
12년 전 조회 1,955
12년 전 조회 2,884
12년 전 조회 1,436
12년 전 조회 4,067
12년 전 조회 1만
12년 전 조회 1,303
12년 전 조회 2,640
12년 전 조회 2,325
12년 전 조회 3,186
12년 전 조회 6,205
12년 전 조회 2,820
12년 전 조회 3,167
12년 전 조회 1,164
12년 전 조회 957
12년 전 조회 2,051
12년 전 조회 6,063
12년 전 조회 1,665
12년 전 조회 4,902
13년 전 조회 1,125
13년 전 조회 4,296
13년 전 조회 1,432
13년 전 조회 1,285
13년 전 조회 1,865
13년 전 조회 1,500
13년 전 조회 764
13년 전 조회 732
13년 전 조회 2.1만
13년 전 조회 702
🐛 버그신고