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,734
12년 전 조회 1,222
12년 전 조회 1,240
12년 전 조회 4,619
12년 전 조회 1,663
12년 전 조회 1,809
12년 전 조회 5,677
12년 전 조회 3,422
12년 전 조회 2,318
12년 전 조회 1,466
12년 전 조회 3,656
12년 전 조회 2,679
12년 전 조회 2,393
12년 전 조회 2,014
12년 전 조회 1,705
12년 전 조회 1,706
12년 전 조회 1,462
12년 전 조회 2,570
12년 전 조회 1,852
12년 전 조회 1,525
12년 전 조회 2,609
12년 전 조회 1,775
12년 전 조회 2,408
12년 전 조회 3,624
12년 전 조회 1,406
12년 전 조회 2,370
12년 전 조회 1,221
12년 전 조회 1,705
12년 전 조회 2,282
12년 전 조회 1,917
12년 전 조회 4,739
12년 전 조회 2,837
12년 전 조회 3,015
12년 전 조회 1,379
12년 전 조회 8,712
12년 전 조회 3,519
12년 전 조회 1,606
12년 전 조회 1,460
12년 전 조회 2,856
12년 전 조회 5,537
12년 전 조회 3,594
12년 전 조회 1,512
12년 전 조회 1.4만
12년 전 조회 1,384
12년 전 조회 788
12년 전 조회 4,104
12년 전 조회 1,606
12년 전 조회 9,504
12년 전 조회 969
12년 전 조회 1,408
12년 전 조회 3,388
12년 전 조회 1,019
12년 전 조회 1,931
12년 전 조회 3,828
12년 전 조회 1,240
12년 전 조회 1,148
12년 전 조회 5,477
12년 전 조회 1,606
12년 전 조회 933
12년 전 조회 2,765
12년 전 조회 2,663
12년 전 조회 1,676
12년 전 조회 3,113
12년 전 조회 6,718
12년 전 조회 2,315
12년 전 조회 913
12년 전 조회 2,078
12년 전 조회 2,024
12년 전 조회 2,780
12년 전 조회 769
12년 전 조회 1,868
12년 전 조회 957
12년 전 조회 1,935
12년 전 조회 2,859
12년 전 조회 1,416
12년 전 조회 4,048
12년 전 조회 1만
12년 전 조회 1,287
12년 전 조회 2,619
12년 전 조회 2,303
12년 전 조회 3,164
12년 전 조회 6,189
12년 전 조회 2,806
12년 전 조회 3,148
12년 전 조회 1,145
12년 전 조회 932
12년 전 조회 2,030
12년 전 조회 6,043
12년 전 조회 1,643
12년 전 조회 4,883
12년 전 조회 1,108
12년 전 조회 4,278
12년 전 조회 1,413
12년 전 조회 1,267
12년 전 조회 1,851
13년 전 조회 1,481
13년 전 조회 751
13년 전 조회 708
13년 전 조회 2.1만
13년 전 조회 674
🐛 버그신고