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,064
13년 전 조회 2,509
13년 전 조회 2,530
13년 전 조회 5,928
13년 전 조회 2,969
13년 전 조회 3,137
13년 전 조회 7,013
13년 전 조회 4,692
13년 전 조회 3,641
13년 전 조회 2,813
13년 전 조회 4,993
13년 전 조회 4,003
13년 전 조회 3,682
13년 전 조회 3,362
13년 전 조회 3,037
13년 전 조회 3,014
13년 전 조회 2,773
13년 전 조회 3,904
13년 전 조회 3,210
13년 전 조회 2,833
13년 전 조회 3,920
13년 전 조회 3,124
13년 전 조회 3,723
13년 전 조회 4,945
13년 전 조회 2,706
13년 전 조회 3,671
13년 전 조회 2,504
13년 전 조회 2,995
13년 전 조회 3,609
13년 전 조회 3,265
13년 전 조회 6,065
13년 전 조회 4,180
13년 전 조회 4,350
13년 전 조회 2,731
13년 전 조회 1만
13년 전 조회 4,866
13년 전 조회 2,936
13년 전 조회 2,812
13년 전 조회 4,207
13년 전 조회 6,930
13년 전 조회 4,921
13년 전 조회 2,846
13년 전 조회 1.5만
13년 전 조회 2,727
13년 전 조회 2,160
13년 전 조회 5,249
13년 전 조회 2,729
13년 전 조회 1.1만
13년 전 조회 2,340
13년 전 조회 2,569
13년 전 조회 4,783
13년 전 조회 2,378
13년 전 조회 3,299
13년 전 조회 5,210
13년 전 조회 2,585
13년 전 조회 2,490
13년 전 조회 6,872
13년 전 조회 2,964
13년 전 조회 2,280
13년 전 조회 4,036
13년 전 조회 4,068
13년 전 조회 3,033
13년 전 조회 4,468
13년 전 조회 8,128
13년 전 조회 3,696
13년 전 조회 2,307
13년 전 조회 3,437
13년 전 조회 3,397
13년 전 조회 4,155
13년 전 조회 2,155
13년 전 조회 3,256
13년 전 조회 2,105
13년 전 조회 3,320
13년 전 조회 4,225
13년 전 조회 2,549
13년 전 조회 5,449
13년 전 조회 1.2만
13년 전 조회 2,675
13년 전 조회 4,065
13년 전 조회 3,673
13년 전 조회 4,342
13년 전 조회 7,617
13년 전 조회 3,977
13년 전 조회 4,568
13년 전 조회 2,581
13년 전 조회 2,316
13년 전 조회 3,421
13년 전 조회 7,439
13년 전 조회 3,013
13년 전 조회 6,310
13년 전 조회 2,231
13년 전 조회 5,662
13년 전 조회 2,818
13년 전 조회 2,661
13년 전 조회 2,935
13년 전 조회 2,857
13년 전 조회 2,099
13년 전 조회 2,079
13년 전 조회 2.2만
13년 전 조회 2,039