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,041
13년 전 조회 2,491
13년 전 조회 2,503
13년 전 조회 5,896
13년 전 조회 2,945
13년 전 조회 3,113
13년 전 조회 6,984
13년 전 조회 4,679
13년 전 조회 3,620
13년 전 조회 2,793
13년 전 조회 4,972
13년 전 조회 3,982
13년 전 조회 3,660
13년 전 조회 3,344
13년 전 조회 3,020
13년 전 조회 2,988
13년 전 조회 2,757
13년 전 조회 3,873
13년 전 조회 3,190
13년 전 조회 2,814
13년 전 조회 3,894
13년 전 조회 3,100
13년 전 조회 3,704
13년 전 조회 4,921
13년 전 조회 2,678
13년 전 조회 3,642
13년 전 조회 2,482
13년 전 조회 2,982
13년 전 조회 3,591
13년 전 조회 3,238
13년 전 조회 6,036
13년 전 조회 4,150
13년 전 조회 4,315
13년 전 조회 2,711
13년 전 조회 1만
13년 전 조회 4,843
13년 전 조회 2,915
13년 전 조회 2,786
13년 전 조회 4,173
13년 전 조회 6,906
13년 전 조회 4,902
13년 전 조회 2,818
13년 전 조회 1.5만
13년 전 조회 2,698
13년 전 조회 2,128
13년 전 조회 5,242
13년 전 조회 2,718
13년 전 조회 1.1만
13년 전 조회 2,306
13년 전 조회 2,558
13년 전 조회 4,749
13년 전 조회 2,357
13년 전 조회 3,267
13년 전 조회 5,177
13년 전 조회 2,556
13년 전 조회 2,462
13년 전 조회 6,841
13년 전 조회 2,938
13년 전 조회 2,253
13년 전 조회 3,998
13년 전 조회 4,029
13년 전 조회 3,003
13년 전 조회 4,439
13년 전 조회 8,099
13년 전 조회 3,664
13년 전 조회 2,278
13년 전 조회 3,403
13년 전 조회 3,361
13년 전 조회 4,119
13년 전 조회 2,126
13년 전 조회 3,224
13년 전 조회 2,092
13년 전 조회 3,287
13년 전 조회 4,195
13년 전 조회 2,541
13년 전 조회 5,411
13년 전 조회 1.2만
13년 전 조회 2,653
13년 전 조회 4,036
13년 전 조회 3,635
13년 전 조회 4,330
13년 전 조회 7,587
13년 전 조회 3,969
13년 전 조회 4,536
13년 전 조회 2,540
13년 전 조회 2,290
13년 전 조회 3,388
13년 전 조회 7,418
13년 전 조회 2,977
13년 전 조회 6,283
13년 전 조회 2,221
13년 전 조회 5,635
13년 전 조회 2,789
13년 전 조회 2,636
13년 전 조회 2,925
13년 전 조회 2,833
13년 전 조회 2,081
13년 전 조회 2,047
13년 전 조회 2.2만
13년 전 조회 2,020