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,725
12년 전 조회 1,212
12년 전 조회 1,236
12년 전 조회 4,608
12년 전 조회 1,651
12년 전 조회 1,799
12년 전 조회 5,666
12년 전 조회 3,415
12년 전 조회 2,313
12년 전 조회 1,455
12년 전 조회 3,646
12년 전 조회 2,665
12년 전 조회 2,378
12년 전 조회 1,996
12년 전 조회 1,700
12년 전 조회 1,698
12년 전 조회 1,457
12년 전 조회 2,557
12년 전 조회 1,840
12년 전 조회 1,512
12년 전 조회 2,595
12년 전 조회 1,763
12년 전 조회 2,398
12년 전 조회 3,613
12년 전 조회 1,394
12년 전 조회 2,357
12년 전 조회 1,207
12년 전 조회 1,697
12년 전 조회 2,275
12년 전 조회 1,906
12년 전 조회 4,731
12년 전 조회 2,820
12년 전 조회 2,997
12년 전 조회 1,371
12년 전 조회 8,703
12년 전 조회 3,502
12년 전 조회 1,589
12년 전 조회 1,449
12년 전 조회 2,848
12년 전 조회 5,530
12년 전 조회 3,572
12년 전 조회 1,500
12년 전 조회 1.4만
12년 전 조회 1,368
12년 전 조회 776
12년 전 조회 4,090
12년 전 조회 1,599
12년 전 조회 9,494
12년 전 조회 947
12년 전 조회 1,398
12년 전 조회 3,382
12년 전 조회 1,002
12년 전 조회 1,921
12년 전 조회 3,817
12년 전 조회 1,231
12년 전 조회 1,136
12년 전 조회 5,463
12년 전 조회 1,594
12년 전 조회 917
12년 전 조회 2,762
12년 전 조회 2,644
12년 전 조회 1,664
12년 전 조회 3,088
12년 전 조회 6,705
12년 전 조회 2,303
12년 전 조회 906
12년 전 조회 2,070
12년 전 조회 2,012
12년 전 조회 2,765
12년 전 조회 758
12년 전 조회 1,849
12년 전 조회 948
12년 전 조회 1,923
12년 전 조회 2,843
12년 전 조회 1,399
12년 전 조회 4,036
12년 전 조회 1만
12년 전 조회 1,278
12년 전 조회 2,601
12년 전 조회 2,289
12년 전 조회 3,149
12년 전 조회 6,181
12년 전 조회 2,795
12년 전 조회 3,136
12년 전 조회 1,134
12년 전 조회 922
12년 전 조회 2,012
12년 전 조회 6,032
12년 전 조회 1,633
12년 전 조회 4,860
12년 전 조회 1,100
12년 전 조회 4,265
12년 전 조회 1,410
12년 전 조회 1,249
12년 전 조회 1,842
12년 전 조회 1,463
12년 전 조회 738
12년 전 조회 697
13년 전 조회 2.1만
13년 전 조회 668
🐛 버그신고