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,022
13년 전 조회 2,479
13년 전 조회 2,485
13년 전 조회 5,876
13년 전 조회 2,924
13년 전 조회 3,092
13년 전 조회 6,970
13년 전 조회 4,666
13년 전 조회 3,594
13년 전 조회 2,771
13년 전 조회 4,953
13년 전 조회 3,962
13년 전 조회 3,642
13년 전 조회 3,319
13년 전 조회 3,003
13년 전 조회 2,972
13년 전 조회 2,734
13년 전 조회 3,855
13년 전 조회 3,162
13년 전 조회 2,793
13년 전 조회 3,876
13년 전 조회 3,083
13년 전 조회 3,680
13년 전 조회 4,903
13년 전 조회 2,658
13년 전 조회 3,620
13년 전 조회 2,464
13년 전 조회 2,957
13년 전 조회 3,568
13년 전 조회 3,216
13년 전 조회 6,017
13년 전 조회 4,128
13년 전 조회 4,287
13년 전 조회 2,685
13년 전 조회 9,997
13년 전 조회 4,817
13년 전 조회 2,889
13년 전 조회 2,762
13년 전 조회 4,154
13년 전 조회 6,880
13년 전 조회 4,873
13년 전 조회 2,795
13년 전 조회 1.5만
13년 전 조회 2,672
13년 전 조회 2,099
13년 전 조회 5,232
13년 전 조회 2,704
13년 전 조회 1.1만
13년 전 조회 2,281
13년 전 조회 2,542
13년 전 조회 4,724
13년 전 조회 2,333
13년 전 조회 3,241
13년 전 조회 5,155
13년 전 조회 2,530
13년 전 조회 2,434
13년 전 조회 6,819
13년 전 조회 2,911
13년 전 조회 2,228
13년 전 조회 3,978
13년 전 조회 4,005
13년 전 조회 2,972
13년 전 조회 4,417
13년 전 조회 8,079
13년 전 조회 3,634
13년 전 조회 2,241
13년 전 조회 3,386
13년 전 조회 3,335
13년 전 조회 4,091
13년 전 조회 2,102
13년 전 조회 3,194
13년 전 조회 2,085
13년 전 조회 3,267
13년 전 조회 4,177
13년 전 조회 2,517
13년 전 조회 5,378
13년 전 조회 1.2만
13년 전 조회 2,619
13년 전 조회 4,010
13년 전 조회 3,607
13년 전 조회 4,323
13년 전 조회 7,553
13년 전 조회 3,956
13년 전 조회 4,507
13년 전 조회 2,514
13년 전 조회 2,267
13년 전 조회 3,365
13년 전 조회 7,389
13년 전 조회 2,956
13년 전 조회 6,250
13년 전 조회 2,213
13년 전 조회 5,612
13년 전 조회 2,760
13년 전 조회 2,609
13년 전 조회 2,915
13년 전 조회 2,799
13년 전 조회 2,049
13년 전 조회 2,013
13년 전 조회 2.2만
13년 전 조회 1,994