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년 전 조회 4,045
13년 전 조회 2,492
13년 전 조회 2,508
13년 전 조회 5,900
13년 전 조회 2,950
13년 전 조회 3,117
13년 전 조회 6,993
13년 전 조회 4,684
13년 전 조회 3,625
13년 전 조회 2,794
13년 전 조회 4,975
13년 전 조회 3,985
13년 전 조회 3,661
13년 전 조회 3,349
13년 전 조회 3,024
13년 전 조회 2,995
13년 전 조회 2,759
13년 전 조회 3,876
13년 전 조회 3,190
13년 전 조회 2,816
13년 전 조회 3,897
13년 전 조회 3,101
13년 전 조회 3,704
13년 전 조회 4,923
13년 전 조회 2,684
13년 전 조회 3,645
13년 전 조회 2,485
13년 전 조회 2,985
13년 전 조회 3,593
13년 전 조회 3,243
13년 전 조회 6,041
13년 전 조회 4,156
13년 전 조회 4,322
13년 전 조회 2,711
13년 전 조회 1만
13년 전 조회 4,846
13년 전 조회 2,916
13년 전 조회 2,789
13년 전 조회 4,178
13년 전 조회 6,907
13년 전 조회 4,907
13년 전 조회 2,821
13년 전 조회 1.5만
13년 전 조회 2,703
13년 전 조회 2,133
13년 전 조회 5,243
13년 전 조회 2,720
13년 전 조회 1.1만
13년 전 조회 2,312
13년 전 조회 2,561
13년 전 조회 4,751
13년 전 조회 2,360
13년 전 조회 3,272
13년 전 조회 5,184
13년 전 조회 2,560
13년 전 조회 2,466
13년 전 조회 6,849
13년 전 조회 2,940
13년 전 조회 2,260
13년 전 조회 4,003
13년 전 조회 4,035
13년 전 조회 3,010
13년 전 조회 4,446
13년 전 조회 8,106
13년 전 조회 3,672
13년 전 조회 2,284
13년 전 조회 3,409
13년 전 조회 3,365
13년 전 조회 4,128
13년 전 조회 2,130
13년 전 조회 3,229
13년 전 조회 2,093
13년 전 조회 3,292
13년 전 조회 4,201
13년 전 조회 2,543
13년 전 조회 5,417
13년 전 조회 1.2만
13년 전 조회 2,655
13년 전 조회 4,045
13년 전 조회 3,642
13년 전 조회 4,333
13년 전 조회 7,592
13년 전 조회 3,969
13년 전 조회 4,542
13년 전 조회 2,549
13년 전 조회 2,296
13년 전 조회 3,390
13년 전 조회 7,423
13년 전 조회 2,987
13년 전 조회 6,289
13년 전 조회 2,221
13년 전 조회 5,638
13년 전 조회 2,795
13년 전 조회 2,643
13년 전 조회 2,928
13년 전 조회 2,837
13년 전 조회 2,085
13년 전 조회 2,054
13년 전 조회 2.2만
13년 전 조회 2,021