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개

댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
12년 전 조회 3,674
12년 전 조회 2,131
12년 전 조회 2,165
12년 전 조회 5,534
12년 전 조회 2,589
12년 전 조회 2,769
12년 전 조회 6,599
12년 전 조회 4,326
12년 전 조회 3,258
12년 전 조회 2,429
12년 전 조회 4,611
12년 전 조회 3,595
12년 전 조회 3,301
13년 전 조회 2,960
13년 전 조회 2,638
13년 전 조회 2,652
13년 전 조회 2,383
13년 전 조회 3,476
13년 전 조회 2,794
13년 전 조회 2,456
13년 전 조회 3,512
13년 전 조회 2,742
13년 전 조회 3,313
13년 전 조회 4,535
13년 전 조회 2,305
13년 전 조회 3,320
13년 전 조회 2,144
13년 전 조회 2,601
13년 전 조회 3,246
13년 전 조회 2,878
13년 전 조회 5,669
13년 전 조회 3,777
13년 전 조회 3,982
13년 전 조회 2,343
13년 전 조회 9,659
13년 전 조회 4,481
13년 전 조회 2,539
13년 전 조회 2,400
13년 전 조회 3,815
13년 전 조회 6,533
13년 전 조회 4,539
13년 전 조회 2,450
13년 전 조회 1.5만
13년 전 조회 2,330
13년 전 조회 1,739
13년 전 조회 5,037
13년 전 조회 2,515
13년 전 조회 1만
13년 전 조회 1,934
13년 전 조회 2,328
13년 전 조회 4,389
13년 전 조회 1,994
13년 전 조회 2,894
13년 전 조회 4,822
13년 전 조회 2,210
13년 전 조회 2,112
13년 전 조회 6,482
13년 전 조회 2,571
13년 전 조회 1,904
13년 전 조회 3,641
13년 전 조회 3,660
13년 전 조회 2,622
13년 전 조회 4,054
13년 전 조회 7,725
13년 전 조회 3,317
13년 전 조회 1,889
13년 전 조회 3,041
13년 전 조회 2,999
13년 전 조회 3,779
13년 전 조회 1,732
13년 전 조회 2,843
13년 전 조회 1,865
13년 전 조회 2,934
13년 전 조회 3,826
13년 전 조회 2,300
13년 전 조회 5,030
13년 전 조회 1.1만
13년 전 조회 2,294
13년 전 조회 3,661
13년 전 조회 3,272
13년 전 조회 4,122
13년 전 조회 7,185
13년 전 조회 3,753
13년 전 조회 4,146
13년 전 조회 2,132
13년 전 조회 1,909
13년 전 조회 2,996
13년 전 조회 7,009
13년 전 조회 2,608
13년 전 조회 5,876
13년 전 조회 1,987
13년 전 조회 5,249
13년 전 조회 2,418
13년 전 조회 2,243
13년 전 조회 2,717
13년 전 조회 2,429
13년 전 조회 1,683
13년 전 조회 1,660
13년 전 조회 2.2만
13년 전 조회 1,623