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,817
13년 전 조회 2,245
13년 전 조회 2,267
13년 전 조회 5,652
13년 전 조회 2,716
13년 전 조회 2,883
13년 전 조회 6,740
13년 전 조회 4,453
13년 전 조회 3,373
13년 전 조회 2,566
13년 전 조회 4,725
13년 전 조회 3,721
13년 전 조회 3,423
13년 전 조회 3,064
13년 전 조회 2,766
13년 전 조회 2,750
13년 전 조회 2,491
13년 전 조회 3,618
13년 전 조회 2,913
13년 전 조회 2,567
13년 전 조회 3,623
13년 전 조회 2,837
13년 전 조회 3,445
13년 전 조회 4,681
13년 전 조회 2,438
13년 전 조회 3,425
13년 전 조회 2,257
13년 전 조회 2,715
13년 전 조회 3,352
13년 전 조회 2,992
13년 전 조회 5,781
13년 전 조회 3,914
13년 전 조회 4,094
13년 전 조회 2,445
13년 전 조회 9,766
13년 전 조회 4,611
13년 전 조회 2,674
13년 전 조회 2,540
13년 전 조회 3,919
13년 전 조회 6,647
13년 전 조회 4,656
13년 전 조회 2,578
13년 전 조회 1.5만
13년 전 조회 2,455
13년 전 조회 1,875
13년 전 조회 5,142
13년 전 조회 2,635
13년 전 조회 1.1만
13년 전 조회 2,053
13년 전 조회 2,453
13년 전 조회 4,502
13년 전 조회 2,106
13년 전 조회 3,008
13년 전 조회 4,936
13년 전 조회 2,324
13년 전 조회 2,220
13년 전 조회 6,585
13년 전 조회 2,679
13년 전 조회 2,008
13년 전 조회 3,761
13년 전 조회 3,777
13년 전 조회 2,732
13년 전 조회 4,180
13년 전 조회 7,842
13년 전 조회 3,412
13년 전 조회 2,011
13년 전 조회 3,169
13년 전 조회 3,104
13년 전 조회 3,895
13년 전 조회 1,862
13년 전 조회 2,964
13년 전 조회 1,997
13년 전 조회 3,043
13년 전 조회 3,953
13년 전 조회 2,431
13년 전 조회 5,145
13년 전 조회 1.1만
13년 전 조회 2,404
13년 전 조회 3,756
13년 전 조회 3,373
13년 전 조회 4,227
13년 전 조회 7,304
13년 전 조회 3,865
13년 전 조회 4,263
13년 전 조회 2,252
13년 전 조회 2,026
13년 전 조회 3,119
13년 전 조회 7,137
13년 전 조회 2,717
13년 전 조회 6,001
13년 전 조회 2,130
13년 전 조회 5,364
13년 전 조회 2,535
13년 전 조회 2,370
13년 전 조회 2,835
13년 전 조회 2,545
13년 전 조회 1,802
13년 전 조회 1,798
13년 전 조회 2.2만
13년 전 조회 1,758