title: Where can i find jquery plugin like twitter bootstrap's .subnav auto float bar?
body: <p>when u see this page</p>
  
  <p><a href="http://twitter.github.com/bootstrap/javascript.html" rel="nofollow">http://twitter.github.com/bootstrap/javascript.html</a></p>
  
  <p>there's an auto float bar at where u scroll your page it auto stick to top</p>
  
  <p>where can i find a plugin and got many custom settings like this ?</p>
  
  <p>i've copy the html and javascript code from that page like below</p>
  
  <pre><code>(function($){
  
      var $win = $(window);
      var $nav = $('.subnav');
      var navTop = $('.subnav').length &amp;&amp; $('.subnav').offset().top - 38;
      var isFixed = 0;
  
      processScroll();
  
      $win.on('scroll', processScroll);
  
      function processScroll() {
          console.log('test');
          var i, scrollTop = $win.scrollTop();
          if (scrollTop &gt;= navTop &amp;&amp; !isFixed) {
              isFixed = 1;
              $nav.addClass('subnav-fixed');
          } else if (scrollTop &lt;= navTop &amp;&amp; isFixed) {
              isFixed = 0;
              $nav.removeClass('subnav-fixed');
          }
      };
  
  })(jQuery);
  </code></pre>
  
  <p>but it just can't move and stick to top</p>