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,024
13년 전 조회 2,481
13년 전 조회 2,485
13년 전 조회 5,878
13년 전 조회 2,926
13년 전 조회 3,093
13년 전 조회 6,972
13년 전 조회 4,668
13년 전 조회 3,594
13년 전 조회 2,771
13년 전 조회 4,954
13년 전 조회 3,963
13년 전 조회 3,643
13년 전 조회 3,323
13년 전 조회 3,004
13년 전 조회 2,974
13년 전 조회 2,735
13년 전 조회 3,856
13년 전 조회 3,164
13년 전 조회 2,794
13년 전 조회 3,878
13년 전 조회 3,083
13년 전 조회 3,680
13년 전 조회 4,904
13년 전 조회 2,659
13년 전 조회 3,621
13년 전 조회 2,465
13년 전 조회 2,960
13년 전 조회 3,569
13년 전 조회 3,217
13년 전 조회 6,019
13년 전 조회 4,131
13년 전 조회 4,289
13년 전 조회 2,688
13년 전 조회 9,999
13년 전 조회 4,818
13년 전 조회 2,889
13년 전 조회 2,766
13년 전 조회 4,157
13년 전 조회 6,883
13년 전 조회 4,874
13년 전 조회 2,798
13년 전 조회 1.5만
13년 전 조회 2,673
13년 전 조회 2,103
13년 전 조회 5,233
13년 전 조회 2,705
13년 전 조회 1.1만
13년 전 조회 2,283
13년 전 조회 2,543
13년 전 조회 4,725
13년 전 조회 2,335
13년 전 조회 3,244
13년 전 조회 5,159
13년 전 조회 2,532
13년 전 조회 2,439
13년 전 조회 6,821
13년 전 조회 2,914
13년 전 조회 2,230
13년 전 조회 3,979
13년 전 조회 4,007
13년 전 조회 2,972
13년 전 조회 4,417
13년 전 조회 8,082
13년 전 조회 3,636
13년 전 조회 2,246
13년 전 조회 3,389
13년 전 조회 3,337
13년 전 조회 4,095
13년 전 조회 2,105
13년 전 조회 3,199
13년 전 조회 2,085
13년 전 조회 3,268
13년 전 조회 4,179
13년 전 조회 2,518
13년 전 조회 5,378
13년 전 조회 1.2만
13년 전 조회 2,624
13년 전 조회 4,013
13년 전 조회 3,610
13년 전 조회 4,325
13년 전 조회 7,557
13년 전 조회 3,960
13년 전 조회 4,507
13년 전 조회 2,514
13년 전 조회 2,268
13년 전 조회 3,368
13년 전 조회 7,391
13년 전 조회 2,959
13년 전 조회 6,254
13년 전 조회 2,213
13년 전 조회 5,613
13년 전 조회 2,762
13년 전 조회 2,610
13년 전 조회 2,916
13년 전 조회 2,805
13년 전 조회 2,051
13년 전 조회 2,013
13년 전 조회 2.2만
13년 전 조회 1,999