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,865
13년 전 조회 2,311
13년 전 조회 2,325
13년 전 조회 5,711
13년 전 조회 2,770
13년 전 조회 2,930
13년 전 조회 6,803
13년 전 조회 4,518
13년 전 조회 3,432
13년 전 조회 2,628
13년 전 조회 4,799
13년 전 조회 3,783
13년 전 조회 3,480
13년 전 조회 3,140
13년 전 조회 2,831
13년 전 조회 2,815
13년 전 조회 2,542
13년 전 조회 3,676
13년 전 조회 2,972
13년 전 조회 2,616
13년 전 조회 3,691
13년 전 조회 2,906
13년 전 조회 3,497
13년 전 조회 4,737
13년 전 조회 2,494
13년 전 조회 3,475
13년 전 조회 2,316
13년 전 조회 2,772
13년 전 조회 3,410
13년 전 조회 3,051
13년 전 조회 5,849
13년 전 조회 3,957
13년 전 조회 4,148
13년 전 조회 2,500
13년 전 조회 9,831
13년 전 조회 4,666
13년 전 조회 2,727
13년 전 조회 2,595
13년 전 조회 3,981
13년 전 조회 6,702
13년 전 조회 4,719
13년 전 조회 2,649
13년 전 조회 1.5만
13년 전 조회 2,506
13년 전 조회 1,940
13년 전 조회 5,149
13년 전 조회 2,637
13년 전 조회 1.1만
13년 전 조회 2,112
13년 전 조회 2,461
13년 전 조회 4,560
13년 전 조회 2,172
13년 전 조회 3,068
13년 전 조회 5,000
13년 전 조회 2,377
13년 전 조회 2,271
13년 전 조회 6,646
13년 전 조회 2,739
13년 전 조회 2,048
13년 전 조회 3,830
13년 전 조회 3,836
13년 전 조회 2,809
13년 전 조회 4,242
13년 전 조회 7,911
13년 전 조회 3,472
13년 전 조회 2,080
13년 전 조회 3,227
13년 전 조회 3,167
13년 전 조회 3,943
13년 전 조회 1,926
13년 전 조회 3,033
13년 전 조회 2,008
13년 전 조회 3,105
13년 전 조회 4,019
13년 전 조회 2,436
13년 전 조회 5,204
13년 전 조회 1.1만
13년 전 조회 2,471
13년 전 조회 3,820
13년 전 조회 3,435
13년 전 조회 4,236
13년 전 조회 7,355
13년 전 조회 3,875
13년 전 조회 4,336
13년 전 조회 2,320
13년 전 조회 2,092
13년 전 조회 3,184
13년 전 조회 7,196
13년 전 조회 2,781
13년 전 조회 6,069
13년 전 조회 2,138
13년 전 조회 5,431
13년 전 조회 2,597
13년 전 조회 2,437
13년 전 조회 2,843
13년 전 조회 2,620
13년 전 조회 1,866
13년 전 조회 1,862
13년 전 조회 2.2만
13년 전 조회 1,808