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,860
13년 전 조회 2,308
13년 전 조회 2,316
13년 전 조회 5,706
13년 전 조회 2,759
13년 전 조회 2,928
13년 전 조회 6,794
13년 전 조회 4,505
13년 전 조회 3,427
13년 전 조회 2,620
13년 전 조회 4,784
13년 전 조회 3,778
13년 전 조회 3,478
13년 전 조회 3,128
13년 전 조회 2,825
13년 전 조회 2,810
13년 전 조회 2,537
13년 전 조회 3,667
13년 전 조회 2,963
13년 전 조회 2,614
13년 전 조회 3,682
13년 전 조회 2,903
13년 전 조회 3,491
13년 전 조회 4,727
13년 전 조회 2,486
13년 전 조회 3,469
13년 전 조회 2,309
13년 전 조회 2,765
13년 전 조회 3,403
13년 전 조회 3,046
13년 전 조회 5,842
13년 전 조회 3,954
13년 전 조회 4,145
13년 전 조회 2,492
13년 전 조회 9,821
13년 전 조회 4,659
13년 전 조회 2,721
13년 전 조회 2,584
13년 전 조회 3,978
13년 전 조회 6,697
13년 전 조회 4,713
13년 전 조회 2,641
13년 전 조회 1.5만
13년 전 조회 2,499
13년 전 조회 1,928
13년 전 조회 5,148
13년 전 조회 2,635
13년 전 조회 1.1만
13년 전 조회 2,106
13년 전 조회 2,459
13년 전 조회 4,554
13년 전 조회 2,164
13년 전 조회 3,063
13년 전 조회 4,995
13년 전 조회 2,370
13년 전 조회 2,262
13년 전 조회 6,636
13년 전 조회 2,733
13년 전 조회 2,045
13년 전 조회 3,824
13년 전 조회 3,834
13년 전 조회 2,802
13년 전 조회 4,236
13년 전 조회 7,906
13년 전 조회 3,468
13년 전 조회 2,070
13년 전 조회 3,223
13년 전 조회 3,157
13년 전 조회 3,936
13년 전 조회 1,915
13년 전 조회 3,018
13년 전 조회 2,004
13년 전 조회 3,102
13년 전 조회 4,010
13년 전 조회 2,435
13년 전 조회 5,199
13년 전 조회 1.1만
13년 전 조회 2,460
13년 전 조회 3,812
13년 전 조회 3,426
13년 전 조회 4,233
13년 전 조회 7,350
13년 전 조회 3,874
13년 전 조회 4,325
13년 전 조회 2,312
13년 전 조회 2,081
13년 전 조회 3,171
13년 전 조회 7,190
13년 전 조회 2,771
13년 전 조회 6,063
13년 전 조회 2,135
13년 전 조회 5,423
13년 전 조회 2,586
13년 전 조회 2,430
13년 전 조회 2,842
13년 전 조회 2,611
13년 전 조회 1,854
13년 전 조회 1,846
13년 전 조회 2.2만
13년 전 조회 1,799