제이쿼리 퀵메뉴 인덱스와 서브페이지등 문서의 높이값을 구해서 웹표준 퀵메뉴 가능하시는분~?

· 12년 전 · 1820
제이쿼리 퀵메뉴 인덱스와 서브페이지등 문서의 높이값을 구해서 웹표준 퀵메뉴 가능하시는분~?


>>

현재 소스에서 아무래도 문서의 높이값이 잘못되어서 퀵메뉴가 조금 엉성한데요

소스좀 봐주실분~~


<script>
//스카이배너
$(function(){
var cssTop = parseInt($("#aside .right").css("top"));
$(window).scroll(function(){

var s=$("#aside").scrollTop($("#aside").scrollTop() + 100);

if ($(window).scrollTop() == $(document).height() - $(window).height()){
lastPostFunc();
}

var t=$(document).height() - $(window).height()- $(window).scrollTop();
var t2=$(document).height() - $(window).scrollTop();;

//alert(t2);

var position = $(window).scrollTop();

var top=$(window).scrollTop();

if(t2<1000){
top=$(window).scrollTop()+150;
}else{
top=<?=$scrollh?>;
}

$('#aside .right').animate({top:top+"px" },{queue: false, duration: 1000});

});

});

</script>
<div id="aside">
<div class="right" id="btn_sky">
<a href="#header" class="position">상단 검색</a>
<br><br>
<a href="#content" class="position">메뉴선택</a>
<br><br>
<a href="#jq_footer" class="position">하단가기</a>
</div>
</div>
<!--퀵메뉴 끝-->
|

댓글 작성

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

로그인하기
🐛 버그신고