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년 전 조회 3,336
12년 전 조회 1,797
12년 전 조회 1,851
12년 전 조회 5,215
12년 전 조회 2,273
12년 전 조회 2,452
12년 전 조회 6,279
12년 전 조회 3,982
12년 전 조회 2,945
12년 전 조회 2,090
12년 전 조회 4,257
12년 전 조회 3,268
12년 전 조회 2,952
12년 전 조회 2,623
12년 전 조회 2,304
12년 전 조회 2,324
12년 전 조회 2,060
12년 전 조회 3,138
12년 전 조회 2,453
12년 전 조회 2,158
12년 전 조회 3,219
12년 전 조회 2,410
12년 전 조회 2,997
12년 전 조회 4,215
12년 전 조회 1,971
12년 전 조회 2,949
12년 전 조회 1,807
12년 전 조회 2,286
12년 전 조회 2,932
12년 전 조회 2,545
12년 전 조회 5,346
12년 전 조회 3,466
12년 전 조회 3,657
12년 전 조회 2,020
12년 전 조회 9,342
12년 전 조회 4,153
12년 전 조회 2,212
12년 전 조회 2,081
12년 전 조회 3,515
12년 전 조회 6,200
12년 전 조회 4,217
12년 전 조회 2,124
12년 전 조회 1.4만
13년 전 조회 2,003
13년 전 조회 1,424
13년 전 조회 4,792
13년 전 조회 2,273
13년 전 조회 1만
13년 전 조회 1,601
13년 전 조회 2,042
13년 전 조회 4,052
13년 전 조회 1,685
13년 전 조회 2,583
13년 전 조회 4,572
13년 전 조회 1,879
13년 전 조회 1,769
13년 전 조회 6,141
13년 전 조회 2,272
13년 전 조회 1,600
13년 전 조회 3,336
13년 전 조회 3,325
13년 전 조회 2,312
13년 전 조회 3,724
13년 전 조회 7,418
13년 전 조회 2,998
13년 전 조회 1,557
13년 전 조회 2,719
13년 전 조회 2,691
13년 전 조회 3,439
13년 전 조회 1,412
13년 전 조회 2,504
13년 전 조회 1,570
13년 전 조회 2,590
13년 전 조회 3,495
13년 전 조회 2,057
13년 전 조회 4,694
13년 전 조회 1.1만
13년 전 조회 1,954
13년 전 조회 3,326
13년 전 조회 2,946
13년 전 조회 3,869
13년 전 조회 6,862
13년 전 조회 3,515
13년 전 조회 3,836
13년 전 조회 1,800
13년 전 조회 1,577
13년 전 조회 2,675
13년 전 조회 6,682
13년 전 조회 2,297
13년 전 조회 5,536
13년 전 조회 1,715
13년 전 조회 4,934
13년 전 조회 2,101
13년 전 조회 1,902
13년 전 조회 2,457
13년 전 조회 2,092
13년 전 조회 1,354
13년 전 조회 1,334
13년 전 조회 2.1만
13년 전 조회 1,301