barukar (December 28th, 2012)
// grab the initial top offset of the navigation var sticky_navigation_offset_top = jQuery('.header_menu').offset().top; // our function that decides weather the navigation bar should have "fixed" css position or not. var sticky_navigation = function(){ // our current vertical position from the top var scroll_top = jQuery(window).scrollTop(); // if we've scrolled more than the navigation if (scroll_top > sticky_navigation_offset_top) { // your box 200x200 here // write your jquery code to show whatever you want } }; // run our function on load sticky_navigation(); // and run it again every time you scroll jQuery(window).scroll(function() { sticky_navigation(); });
http://www.design3edge.com/2012/11/16/5-best-open-source-ecommerce-cms/
barukar (December 28th, 2012)
There are currently 1 users browsing this thread. (0 members and 1 guests)