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,034
13년 전 조회 2,486
13년 전 조회 2,495
13년 전 조회 5,891
13년 전 조회 2,938
13년 전 조회 3,107
13년 전 조회 6,982
13년 전 조회 4,674
13년 전 조회 3,611
13년 전 조회 2,785
13년 전 조회 4,968
13년 전 조회 3,972
13년 전 조회 3,655
13년 전 조회 3,334
13년 전 조회 3,016
13년 전 조회 2,981
13년 전 조회 2,752
13년 전 조회 3,866
13년 전 조회 3,180
13년 전 조회 2,807
13년 전 조회 3,889
13년 전 조회 3,094
13년 전 조회 3,690
13년 전 조회 4,916
13년 전 조회 2,667
13년 전 조회 3,632
13년 전 조회 2,478
13년 전 조회 2,976
13년 전 조회 3,584
13년 전 조회 3,231
13년 전 조회 6,029
13년 전 조회 4,143
13년 전 조회 4,305
13년 전 조회 2,699
13년 전 조회 1만
13년 전 조회 4,829
13년 전 조회 2,899
13년 전 조회 2,781
13년 전 조회 4,167
13년 전 조회 6,896
13년 전 조회 4,893
13년 전 조회 2,811
13년 전 조회 1.5만
13년 전 조회 2,691
13년 전 조회 2,117
13년 전 조회 5,241
13년 전 조회 2,713
13년 전 조회 1.1만
13년 전 조회 2,297
13년 전 조회 2,554
13년 전 조회 4,738
13년 전 조회 2,346
13년 전 조회 3,257
13년 전 조회 5,169
13년 전 조회 2,547
13년 전 조회 2,448
13년 전 조회 6,835
13년 전 조회 2,929
13년 전 조회 2,243
13년 전 조회 3,989
13년 전 조회 4,025
13년 전 조회 2,996
13년 전 조회 4,433
13년 전 조회 8,091
13년 전 조회 3,649
13년 전 조회 2,267
13년 전 조회 3,397
13년 전 조회 3,351
13년 전 조회 4,110
13년 전 조회 2,120
13년 전 조회 3,218
13년 전 조회 2,090
13년 전 조회 3,279
13년 전 조회 4,191
13년 전 조회 2,534
13년 전 조회 5,396
13년 전 조회 1.2만
13년 전 조회 2,644
13년 전 조회 4,032
13년 전 조회 3,625
13년 전 조회 4,329
13년 전 조회 7,578
13년 전 조회 3,968
13년 전 조회 4,524
13년 전 조회 2,526
13년 전 조회 2,281
13년 전 조회 3,382
13년 전 조회 7,407
13년 전 조회 2,973
13년 전 조회 6,272
13년 전 조회 2,217
13년 전 조회 5,630
13년 전 조회 2,780
13년 전 조회 2,622
13년 전 조회 2,923
13년 전 조회 2,823
13년 전 조회 2,066
13년 전 조회 2,033
13년 전 조회 2.2만
13년 전 조회 2,010