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년 전 조회 2,647
12년 전 조회 1,130
12년 전 조회 1,156
12년 전 조회 4,534
12년 전 조회 1,569
12년 전 조회 1,715
12년 전 조회 5,584
12년 전 조회 3,333
12년 전 조회 2,216
12년 전 조회 1,379
12년 전 조회 3,564
12년 전 조회 2,594
12년 전 조회 2,292
12년 전 조회 1,913
12년 전 조회 1,619
12년 전 조회 1,609
12년 전 조회 1,357
12년 전 조회 2,476
12년 전 조회 1,748
12년 전 조회 1,432
12년 전 조회 2,506
12년 전 조회 1,693
12년 전 조회 2,303
12년 전 조회 3,525
12년 전 조회 1,311
12년 전 조회 2,277
12년 전 조회 1,123
12년 전 조회 1,601
12년 전 조회 2,196
12년 전 조회 1,834
12년 전 조회 4,640
12년 전 조회 2,738
12년 전 조회 2,911
12년 전 조회 1,297
12년 전 조회 8,608
12년 전 조회 3,409
12년 전 조회 1,508
12년 전 조회 1,359
12년 전 조회 2,764
12년 전 조회 5,439
12년 전 조회 3,484
12년 전 조회 1,414
12년 전 조회 1.4만
12년 전 조회 1,272
12년 전 조회 691
12년 전 조회 4,006
12년 전 조회 1,525
12년 전 조회 9,416
12년 전 조회 856
12년 전 조회 1,315
12년 전 조회 3,286
12년 전 조회 918
12년 전 조회 1,836
12년 전 조회 3,732
12년 전 조회 1,146
12년 전 조회 1,032
12년 전 조회 5,379
12년 전 조회 1,508
12년 전 조회 830
12년 전 조회 2,745
12년 전 조회 2,555
12년 전 조회 1,579
12년 전 조회 3,010
12년 전 조회 6,617
12년 전 조회 2,217
12년 전 조회 812
12년 전 조회 1,977
12년 전 조회 1,926
12년 전 조회 2,680
12년 전 조회 675
12년 전 조회 1,765
12년 전 조회 845
12년 전 조회 1,839
12년 전 조회 2,759
12년 전 조회 1,312
12년 전 조회 3,957
12년 전 조회 1만
12년 전 조회 1,178
12년 전 조회 2,514
12년 전 조회 2,195
12년 전 조회 3,062
12년 전 조회 6,101
12년 전 조회 2,711
12년 전 조회 3,033
12년 전 조회 1,049
12년 전 조회 837
12년 전 조회 1,924
12년 전 조회 5,939
12년 전 조회 1,548
12년 전 조회 4,773
12년 전 조회 1,005
12년 전 조회 4,169
12년 전 조회 1,324
12년 전 조회 1,171
12년 전 조회 1,748
12년 전 조회 1,378
12년 전 조회 641
12년 전 조회 607
12년 전 조회 2만
12년 전 조회 574
🐛 버그신고