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,831
12년 전 조회 1,296
12년 전 조회 1,320
12년 전 조회 4,719
12년 전 조회 1,752
12년 전 조회 1,899
12년 전 조회 5,762
12년 전 조회 3,497
12년 전 조회 2,406
12년 전 조회 1,558
12년 전 조회 3,744
12년 전 조회 2,767
12년 전 조회 2,477
12년 전 조회 2,111
12년 전 조회 1,794
12년 전 조회 1,796
12년 전 조회 1,543
12년 전 조회 2,670
12년 전 조회 1,942
12년 전 조회 1,619
12년 전 조회 2,703
12년 전 조회 1,876
12년 전 조회 2,500
12년 전 조회 3,711
12년 전 조회 1,504
12년 전 조회 2,457
12년 전 조회 1,314
12년 전 조회 1,805
12년 전 조회 2,383
12년 전 조회 2,012
12년 전 조회 4,822
12년 전 조회 2,929
12년 전 조회 3,102
12년 전 조회 1,466
12년 전 조회 8,788
12년 전 조회 3,614
12년 전 조회 1,696
12년 전 조회 1,560
12년 전 조회 2,950
12년 전 조회 5,629
12년 전 조회 3,669
12년 전 조회 1,617
12년 전 조회 1.4만
12년 전 조회 1,476
12년 전 조회 882
12년 전 조회 4,189
12년 전 조회 1,696
12년 전 조회 9,580
12년 전 조회 1,066
12년 전 조회 1,501
12년 전 조회 3,464
12년 전 조회 1,116
12년 전 조회 2,021
12년 전 조회 3,923
12년 전 조회 1,333
12년 전 조회 1,234
12년 전 조회 5,559
12년 전 조회 1,703
12년 전 조회 1,030
12년 전 조회 2,814
12년 전 조회 2,751
12년 전 조회 1,763
12년 전 조회 3,203
12년 전 조회 6,828
12년 전 조회 2,399
12년 전 조회 1,009
12년 전 조회 2,160
12년 전 조회 2,084
12년 전 조회 2,870
12년 전 조회 865
12년 전 조회 1,959
12년 전 조회 1,038
12년 전 조회 2,010
12년 전 조회 2,949
12년 전 조회 1,503
12년 전 조회 4,141
12년 전 조회 1만
12년 전 조회 1,367
12년 전 조회 2,713
12년 전 조회 2,392
12년 전 조회 3,255
12년 전 조회 6,275
12년 전 조회 2,882
12년 전 조회 3,227
12년 전 조회 1,235
13년 전 조회 1,025
13년 전 조회 2,120
13년 전 조회 6,126
13년 전 조회 1,730
13년 전 조회 4,971
13년 전 조회 1,189
13년 전 조회 4,356
13년 전 조회 1,498
13년 전 조회 1,349
13년 전 조회 1,928
13년 전 조회 1,565
13년 전 조회 816
13년 전 조회 801
13년 전 조회 2.1만
13년 전 조회 765