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,367
12년 전 조회 1,830
12년 전 조회 1,881
12년 전 조회 5,243
12년 전 조회 2,297
12년 전 조회 2,480
12년 전 조회 6,298
12년 전 조회 4,012
12년 전 조회 2,968
12년 전 조회 2,120
12년 전 조회 4,288
12년 전 조회 3,305
12년 전 조회 2,982
12년 전 조회 2,645
12년 전 조회 2,337
12년 전 조회 2,347
12년 전 조회 2,093
12년 전 조회 3,170
12년 전 조회 2,483
12년 전 조회 2,184
12년 전 조회 3,247
12년 전 조회 2,436
12년 전 조회 3,020
12년 전 조회 4,245
12년 전 조회 1,992
12년 전 조회 2,983
12년 전 조회 1,832
12년 전 조회 2,316
12년 전 조회 2,954
12년 전 조회 2,574
12년 전 조회 5,373
12년 전 조회 3,500
12년 전 조회 3,684
12년 전 조회 2,048
12년 전 조회 9,366
12년 전 조회 4,191
12년 전 조회 2,239
12년 전 조회 2,106
13년 전 조회 3,538
13년 전 조회 6,226
13년 전 조회 4,249
13년 전 조회 2,149
13년 전 조회 1.4만
13년 전 조회 2,028
13년 전 조회 1,452
13년 전 조회 4,794
13년 전 조회 2,283
13년 전 조회 1만
13년 전 조회 1,632
13년 전 조회 2,050
13년 전 조회 4,083
13년 전 조회 1,712
13년 전 조회 2,611
13년 전 조회 4,593
13년 전 조회 1,907
13년 전 조회 1,792
13년 전 조회 6,166
13년 전 조회 2,290
13년 전 조회 1,623
13년 전 조회 3,357
13년 전 조회 3,355
13년 전 조회 2,335
13년 전 조회 3,751
13년 전 조회 7,445
13년 전 조회 3,016
13년 전 조회 1,580
13년 전 조회 2,748
13년 전 조회 2,717
13년 전 조회 3,459
13년 전 조회 1,426
13년 전 조회 2,530
13년 전 조회 1,574
13년 전 조회 2,627
13년 전 조회 3,520
13년 전 조회 2,057
13년 전 조회 4,715
13년 전 조회 1.1만
13년 전 조회 1,981
13년 전 조회 3,347
13년 전 조회 2,973
13년 전 조회 3,872
13년 전 조회 6,893
13년 전 조회 3,522
13년 전 조회 3,864
13년 전 조회 1,839
13년 전 조회 1,606
13년 전 조회 2,708
13년 전 조회 6,711
13년 전 조회 2,320
13년 전 조회 5,557
13년 전 조회 1,721
13년 전 조회 4,966
13년 전 조회 2,124
13년 전 조회 1,927
13년 전 조회 2,463
13년 전 조회 2,120
13년 전 조회 1,380
13년 전 조회 1,354
13년 전 조회 2.1만
13년 전 조회 1,324