본문 바로가기
CSS HTML5/script

퀵메뉴 스크롤 시 위치 지정하는 스크립트

by KJY.Design 2018. 4. 9.
반응형

        <script>

$(document).ready(function () {

$('.Right_quick').css('position', 'fixed');

$(window).scroll(function() {

var sclTop = $(this).scrollTop();

if (sclTop > 140)

{

$('.Right_quick').css('position', 'fixed').css('top', '30px');        

}

else 

{$('.Right_quick').css('position','fixed').css('top','290px');}

});

});

</script>

반응형