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,895
13년 전 조회 2,357
13년 전 조회 2,375
13년 전 조회 5,754
13년 전 조회 2,812
13년 전 조회 2,979
13년 전 조회 6,853
13년 전 조회 4,558
13년 전 조회 3,469
13년 전 조회 2,672
13년 전 조회 4,842
13년 전 조회 3,828
13년 전 조회 3,523
13년 전 조회 3,195
13년 전 조회 2,873
13년 전 조회 2,859
13년 전 조회 2,599
13년 전 조회 3,737
13년 전 조회 3,029
13년 전 조회 2,664
13년 전 조회 3,742
13년 전 조회 2,965
13년 전 조회 3,543
13년 전 조회 4,782
13년 전 조회 2,548
13년 전 조회 3,518
13년 전 조회 2,360
13년 전 조회 2,828
13년 전 조회 3,455
13년 전 조회 3,092
13년 전 조회 5,899
13년 전 조회 3,995
13년 전 조회 4,185
13년 전 조회 2,546
13년 전 조회 9,884
13년 전 조회 4,709
13년 전 조회 2,769
13년 전 조회 2,649
13년 전 조회 4,036
13년 전 조회 6,749
13년 전 조회 4,755
13년 전 조회 2,691
13년 전 조회 1.5만
13년 전 조회 2,554
13년 전 조회 1,977
13년 전 조회 5,166
13년 전 조회 2,651
13년 전 조회 1.1만
13년 전 조회 2,162
13년 전 조회 2,481
13년 전 조회 4,600
13년 전 조회 2,208
13년 전 조회 3,108
13년 전 조회 5,032
13년 전 조회 2,414
13년 전 조회 2,312
13년 전 조회 6,692
13년 전 조회 2,790
13년 전 조회 2,103
13년 전 조회 3,866
13년 전 조회 3,883
13년 전 조회 2,857
13년 전 조회 4,286
13년 전 조회 7,952
13년 전 조회 3,511
13년 전 조회 2,124
13년 전 조회 3,263
13년 전 조회 3,215
13년 전 조회 3,987
13년 전 조회 1,977
13년 전 조회 3,080
13년 전 조회 2,023
13년 전 조회 3,136
13년 전 조회 4,061
13년 전 조회 2,455
13년 전 조회 5,264
13년 전 조회 1.1만
13년 전 조회 2,517
13년 전 조회 3,862
13년 전 조회 3,489
13년 전 조회 4,257
13년 전 조회 7,406
13년 전 조회 3,891
13년 전 조회 4,379
13년 전 조회 2,371
13년 전 조회 2,137
13년 전 조회 3,237
13년 전 조회 7,245
13년 전 조회 2,826
13년 전 조회 6,116
13년 전 조회 2,147
13년 전 조회 5,488
13년 전 조회 2,641
13년 전 조회 2,487
13년 전 조회 2,858
13년 전 조회 2,667
13년 전 조회 1,923
13년 전 조회 1,908
13년 전 조회 2.2만
13년 전 조회 1,852