Response title
This is preview!
- $(document).ready(function() {
- var menu_hdr = $("[id^=table-] .divwrap").offset().top,$window = $(window);
- var menu_end_check = $(".table tbody tr:nth-last-child(9)").offset().top,$window = $(window);
- $(window).on("scroll resize orientationchange", function stickymenu() {
- var y_scroll_pos = window.pageYOffset;
- var menu_header = menu_hdr;
- var menu_footer_check = menu_end_check;
- if((y_scroll_pos >= menu_header) && (y_scroll_pos < menu_footer_check)) {
- /* do stuff */
- }
- });
- });
© 2013 jQuery Foundation
Sponsored by and others.