<script type="text/javascript">
        $(window).scroll(function(){
            var disTop = $(window).scrollTop();
            if(disTop > 250){
                $("#top").fadeIn(600);
            }else{
                $("#top").fadeOut(600);
            }
        });
        $(function(){
            $("#top").click(function(){
                $("html,body").animate({
                    scrollTop: 0
                },1500);
            })
        $("#bottom").click(function(){
                $("html,body").animate({
                    scrollTop: document.body.clientHeight
                },1500);
            })
        });

</script>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2021-07-04
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案