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년 전 조회 3,951
13년 전 조회 2,413
13년 전 조회 2,426
13년 전 조회 5,807
13년 전 조회 2,865
13년 전 조회 3,038
13년 전 조회 6,914
13년 전 조회 4,608
13년 전 조회 3,528
13년 전 조회 2,713
13년 전 조회 4,895
13년 전 조회 3,880
13년 전 조회 3,571
13년 전 조회 3,248
13년 전 조회 2,938
13년 전 조회 2,912
13년 전 조회 2,664
13년 전 조회 3,795
13년 전 조회 3,095
13년 전 조회 2,729
13년 전 조회 3,808
13년 전 조회 3,023
13년 전 조회 3,602
13년 전 조회 4,837
13년 전 조회 2,595
13년 전 조회 3,567
13년 전 조회 2,410
13년 전 조회 2,879
13년 전 조회 3,504
13년 전 조회 3,145
13년 전 조회 5,943
13년 전 조회 4,050
13년 전 조회 4,234
13년 전 조회 2,609
13년 전 조회 9,936
13년 전 조회 4,762
13년 전 조회 2,825
13년 전 조회 2,692
13년 전 조회 4,087
13년 전 조회 6,806
13년 전 조회 4,811
13년 전 조회 2,727
13년 전 조회 1.5만
13년 전 조회 2,612
13년 전 조회 2,031
13년 전 조회 5,200
13년 전 조회 2,671
13년 전 조회 1.1만
13년 전 조회 2,213
13년 전 조회 2,514
13년 전 조회 4,641
13년 전 조회 2,264
13년 전 조회 3,153
13년 전 조회 5,087
13년 전 조회 2,459
13년 전 조회 2,368
13년 전 조회 6,749
13년 전 조회 2,851
13년 전 조회 2,162
13년 전 조회 3,913
13년 전 조회 3,937
13년 전 조회 2,909
13년 전 조회 4,343
13년 전 조회 8,002
13년 전 조회 3,557
13년 전 조회 2,172
13년 전 조회 3,309
13년 전 조회 3,262
13년 전 조회 4,024
13년 전 조회 2,024
13년 전 조회 3,118
13년 전 조회 2,054
13년 전 조회 3,183
13년 전 조회 4,108
13년 전 조회 2,485
13년 전 조회 5,318
13년 전 조회 1.1만
13년 전 조회 2,558
13년 전 조회 3,930
13년 전 조회 3,532
13년 전 조회 4,284
13년 전 조회 7,468
13년 전 조회 3,926
13년 전 조회 4,423
13년 전 조회 2,422
13년 전 조회 2,182
13년 전 조회 3,274
13년 전 조회 7,297
13년 전 조회 2,871
13년 전 조회 6,162
13년 전 조회 2,177
13년 전 조회 5,529
13년 전 조회 2,691
13년 전 조회 2,537
13년 전 조회 2,888
13년 전 조회 2,711
13년 전 조회 1,968
13년 전 조회 1,947
13년 전 조회 2.2만
13년 전 조회 1,900