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년 전 조회 2,581
12년 전 조회 1,073
12년 전 조회 1,099
12년 전 조회 4,462
12년 전 조회 1,515
12년 전 조회 1,654
12년 전 조회 5,515
12년 전 조회 3,280
12년 전 조회 2,162
12년 전 조회 1,319
12년 전 조회 3,507
12년 전 조회 2,539
12년 전 조회 2,244
12년 전 조회 1,863
12년 전 조회 1,559
12년 전 조회 1,550
12년 전 조회 1,304
12년 전 조회 2,423
12년 전 조회 1,697
12년 전 조회 1,373
12년 전 조회 2,456
12년 전 조회 1,635
12년 전 조회 2,245
12년 전 조회 3,467
12년 전 조회 1,256
12년 전 조회 2,224
12년 전 조회 1,057
12년 전 조회 1,549
12년 전 조회 2,139
12년 전 조회 1,776
12년 전 조회 4,583
12년 전 조회 2,684
12년 전 조회 2,852
12년 전 조회 1,252
12년 전 조회 8,560
12년 전 조회 3,354
12년 전 조회 1,454
12년 전 조회 1,307
12년 전 조회 2,709
12년 전 조회 5,384
12년 전 조회 3,436
12년 전 조회 1,364
12년 전 조회 1.4만
12년 전 조회 1,219
12년 전 조회 636
12년 전 조회 3,949
12년 전 조회 1,477
12년 전 조회 9,374
12년 전 조회 807
12년 전 조회 1,262
12년 전 조회 3,239
12년 전 조회 869
12년 전 조회 1,790
12년 전 조회 3,668
12년 전 조회 1,093
12년 전 조회 982
12년 전 조회 5,322
12년 전 조회 1,451
12년 전 조회 779
12년 전 조회 2,739
12년 전 조회 2,508
12년 전 조회 1,527
12년 전 조회 2,963
12년 전 조회 6,566
12년 전 조회 2,157
12년 전 조회 761
12년 전 조회 1,927
12년 전 조회 1,878
12년 전 조회 2,627
12년 전 조회 617
12년 전 조회 1,714
12년 전 조회 793
12년 전 조회 1,795
12년 전 조회 2,706
12년 전 조회 1,268
12년 전 조회 3,899
12년 전 조회 9,985
12년 전 조회 1,139
12년 전 조회 2,465
12년 전 조회 2,142
12년 전 조회 3,003
12년 전 조회 6,036
12년 전 조회 2,663
12년 전 조회 2,985
12년 전 조회 983
12년 전 조회 786
12년 전 조회 1,877
12년 전 조회 5,885
12년 전 조회 1,491
12년 전 조회 4,724
12년 전 조회 951
12년 전 조회 4,118
12년 전 조회 1,260
12년 전 조회 1,123
12년 전 조회 1,703
12년 전 조회 1,339
12년 전 조회 586
12년 전 조회 562
12년 전 조회 2만
12년 전 조회 526
🐛 버그신고