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,363
12년 전 조회 1,826
12년 전 조회 1,877
12년 전 조회 5,239
12년 전 조회 2,295
12년 전 조회 2,476
12년 전 조회 6,296
12년 전 조회 4,009
12년 전 조회 2,965
12년 전 조회 2,113
12년 전 조회 4,280
12년 전 조회 3,301
12년 전 조회 2,977
12년 전 조회 2,642
12년 전 조회 2,330
12년 전 조회 2,346
12년 전 조회 2,086
12년 전 조회 3,162
12년 전 조회 2,479
12년 전 조회 2,179
12년 전 조회 3,242
12년 전 조회 2,428
12년 전 조회 3,015
12년 전 조회 4,237
12년 전 조회 1,989
12년 전 조회 2,979
12년 전 조회 1,828
12년 전 조회 2,309
12년 전 조회 2,949
12년 전 조회 2,573
12년 전 조회 5,367
12년 전 조회 3,495
12년 전 조회 3,683
12년 전 조회 2,047
12년 전 조회 9,364
12년 전 조회 4,183
12년 전 조회 2,233
12년 전 조회 2,105
13년 전 조회 3,536
13년 전 조회 6,217
13년 전 조회 4,240
13년 전 조회 2,146
13년 전 조회 1.4만
13년 전 조회 2,022
13년 전 조회 1,446
13년 전 조회 4,794
13년 전 조회 2,283
13년 전 조회 1만
13년 전 조회 1,626
13년 전 조회 2,049
13년 전 조회 4,081
13년 전 조회 1,708
13년 전 조회 2,603
13년 전 조회 4,590
13년 전 조회 1,902
13년 전 조회 1,789
13년 전 조회 6,162
13년 전 조회 2,286
13년 전 조회 1,618
13년 전 조회 3,354
13년 전 조회 3,350
13년 전 조회 2,332
13년 전 조회 3,748
13년 전 조회 7,440
13년 전 조회 3,015
13년 전 조회 1,576
13년 전 조회 2,745
13년 전 조회 2,714
13년 전 조회 3,458
13년 전 조회 1,424
13년 전 조회 2,524
13년 전 조회 1,574
13년 전 조회 2,621
13년 전 조회 3,514
13년 전 조회 2,057
13년 전 조회 4,711
13년 전 조회 1.1만
13년 전 조회 1,976
13년 전 조회 3,346
13년 전 조회 2,970
13년 전 조회 3,872
13년 전 조회 6,889
13년 전 조회 3,522
13년 전 조회 3,862
13년 전 조회 1,832
13년 전 조회 1,599
13년 전 조회 2,702
13년 전 조회 6,708
13년 전 조회 2,316
13년 전 조회 5,553
13년 전 조회 1,720
13년 전 조회 4,964
13년 전 조회 2,119
13년 전 조회 1,924
13년 전 조회 2,463
13년 전 조회 2,115
13년 전 조회 1,375
13년 전 조회 1,347
13년 전 조회 2.1만
13년 전 조회 1,319