// 滑到不同内容块,上面相应导航变色
    var current_nav = 'qiye';

    scroll_function = function() {

        $(".about_content_list").each(function(index) {
            var h = $(this).offset().top;
            var y = $(window).scrollTop();

            if (y >= h && y < h + $(this).height() && $(this).attr('id') != current_nav) {

                current_nav = $(this).attr('id');

                $('.aboutus_navtxt a').removeClass('aboutus_change');
                $('.nav_' + current_nav).addClass('aboutus_change').show("fast");

            }
        });
    }
    $(window).scroll(function() {
        scroll_function();
    });

效果如e车宝的网站

相关文章:

  • 2022-12-23
  • 2021-08-02
  • 2021-09-06
  • 2022-12-23
  • 2021-05-19
  • 2021-11-20
  • 2021-08-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
  • 2021-07-15
  • 2022-12-23
  • 2021-12-24
相关资源
相似解决方案