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,863
13년 전 조회 2,311
13년 전 조회 2,321
13년 전 조회 5,707
13년 전 조회 2,764
13년 전 조회 2,929
13년 전 조회 6,800
13년 전 조회 4,515
13년 전 조회 3,428
13년 전 조회 2,625
13년 전 조회 4,796
13년 전 조회 3,781
13년 전 조회 3,479
13년 전 조회 3,136
13년 전 조회 2,829
13년 전 조회 2,813
13년 전 조회 2,538
13년 전 조회 3,673
13년 전 조회 2,969
13년 전 조회 2,615
13년 전 조회 3,688
13년 전 조회 2,905
13년 전 조회 3,495
13년 전 조회 4,731
13년 전 조회 2,491
13년 전 조회 3,470
13년 전 조회 2,313
13년 전 조회 2,770
13년 전 조회 3,407
13년 전 조회 3,047
13년 전 조회 5,847
13년 전 조회 3,955
13년 전 조회 4,147
13년 전 조회 2,495
13년 전 조회 9,828
13년 전 조회 4,662
13년 전 조회 2,725
13년 전 조회 2,594
13년 전 조회 3,979
13년 전 조회 6,700
13년 전 조회 4,717
13년 전 조회 2,648
13년 전 조회 1.5만
13년 전 조회 2,503
13년 전 조회 1,936
13년 전 조회 5,149
13년 전 조회 2,637
13년 전 조회 1.1만
13년 전 조회 2,111
13년 전 조회 2,460
13년 전 조회 4,560
13년 전 조회 2,166
13년 전 조회 3,066
13년 전 조회 4,998
13년 전 조회 2,374
13년 전 조회 2,265
13년 전 조회 6,643
13년 전 조회 2,735
13년 전 조회 2,046
13년 전 조회 3,828
13년 전 조회 3,835
13년 전 조회 2,806
13년 전 조회 4,242
13년 전 조회 7,910
13년 전 조회 3,470
13년 전 조회 2,075
13년 전 조회 3,227
13년 전 조회 3,162
13년 전 조회 3,940
13년 전 조회 1,923
13년 전 조회 3,028
13년 전 조회 2,007
13년 전 조회 3,103
13년 전 조회 4,017
13년 전 조회 2,436
13년 전 조회 5,201
13년 전 조회 1.1만
13년 전 조회 2,465
13년 전 조회 3,819
13년 전 조회 3,432
13년 전 조회 4,235
13년 전 조회 7,353
13년 전 조회 3,875
13년 전 조회 4,334
13년 전 조회 2,319
13년 전 조회 2,090
13년 전 조회 3,182
13년 전 조회 7,193
13년 전 조회 2,779
13년 전 조회 6,066
13년 전 조회 2,137
13년 전 조회 5,430
13년 전 조회 2,591
13년 전 조회 2,435
13년 전 조회 2,843
13년 전 조회 2,616
13년 전 조회 1,863
13년 전 조회 1,859
13년 전 조회 2.2만
13년 전 조회 1,805