Play Ground

[jquery] 퀵메뉴 본문

Programming/JavaScript/JQuery

[jquery] 퀵메뉴

haeru 2013. 3. 5. 14:34

<div id="quickMenu">

<ul>

<li><a href="#" title="퀵메뉴1">퀵메뉴1</a></li>

<li><a href="#" title="퀵메뉴2">퀵메뉴2</a></li>

<li><a href="#" title="퀵메뉴3">퀵메뉴3</a></li>

<li><a href="#" title="퀵메뉴4">퀵메뉴4</a></li>

</ul>

</div>

<script type="text/javascript">

$(window).scroll(function(){

var scrollTop = $(document).scrollTop();

if (scrollTop < 100) {

scrollTop = 10;

}

$("#quickMenu").stop();

$("#quickMenu").animate( { "top" : scrollTop });

});

</script>

구글링하다가 찾은 퀵메뉴 소스인데

출처를 모르겠다ㅠㅠㅠ