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,046
13년 전 조회 2,497
13년 전 조회 2,516
13년 전 조회 5,907
13년 전 조회 2,954
13년 전 조회 3,118
13년 전 조회 6,998
13년 전 조회 4,686
13년 전 조회 3,628
13년 전 조회 2,796
13년 전 조회 4,977
13년 전 조회 3,992
13년 전 조회 3,667
13년 전 조회 3,352
13년 전 조회 3,025
13년 전 조회 2,997
13년 전 조회 2,760
13년 전 조회 3,884
13년 전 조회 3,195
13년 전 조회 2,817
13년 전 조회 3,905
13년 전 조회 3,107
13년 전 조회 3,707
13년 전 조회 4,928
13년 전 조회 2,687
13년 전 조회 3,647
13년 전 조회 2,490
13년 전 조회 2,985
13년 전 조회 3,596
13년 전 조회 3,249
13년 전 조회 6,049
13년 전 조회 4,160
13년 전 조회 4,332
13년 전 조회 2,717
13년 전 조회 1만
13년 전 조회 4,848
13년 전 조회 2,917
13년 전 조회 2,793
13년 전 조회 4,186
13년 전 조회 6,910
13년 전 조회 4,907
13년 전 조회 2,826
13년 전 조회 1.5만
13년 전 조회 2,706
13년 전 조회 2,137
13년 전 조회 5,246
13년 전 조회 2,722
13년 전 조회 1.1만
13년 전 조회 2,312
13년 전 조회 2,563
13년 전 조회 4,755
13년 전 조회 2,362
13년 전 조회 3,274
13년 전 조회 5,193
13년 전 조회 2,562
13년 전 조회 2,466
13년 전 조회 6,851
13년 전 조회 2,943
13년 전 조회 2,264
13년 전 조회 4,010
13년 전 조회 4,044
13년 전 조회 3,016
13년 전 조회 4,455
13년 전 조회 8,112
13년 전 조회 3,678
13년 전 조회 2,285
13년 전 조회 3,411
13년 전 조회 3,373
13년 전 조회 4,133
13년 전 조회 2,134
13년 전 조회 3,230
13년 전 조회 2,094
13년 전 조회 3,299
13년 전 조회 4,206
13년 전 조회 2,544
13년 전 조회 5,426
13년 전 조회 1.2만
13년 전 조회 2,658
13년 전 조회 4,052
13년 전 조회 3,649
13년 전 조회 4,336
13년 전 조회 7,596
13년 전 조회 3,971
13년 전 조회 4,551
13년 전 조회 2,552
13년 전 조회 2,300
13년 전 조회 3,399
13년 전 조회 7,427
13년 전 조회 2,991
13년 전 조회 6,295
13년 전 조회 2,223
13년 전 조회 5,645
13년 전 조회 2,804
13년 전 조회 2,647
13년 전 조회 2,928
13년 전 조회 2,841
13년 전 조회 2,088
13년 전 조회 2,063
13년 전 조회 2.2만
13년 전 조회 2,025