<script src="js/jquery-1.11.0.js" type="text/javascript" charset="utf-8"></script><script type="text/javascript">$(function(){var flag =true;$(window).scroll(function(){if(flag){var t =$(this).scrollTop();if(t >500){$("#floorNav").fadeIn();}else{$("#floorNav").fadeOut();}$("#content li").each(function(){if(t >=$(this).offset().top -$(this).outerHeight()/2){var index =$(this).index();$("#floorNav li").eq(index).addClass("hover").siblings().removeClass("hover");}});}});$("#floorNav li").click(function(){
flag =false;var index =$(this).index();$("html,body").animate({
scrollTop:$("#content li").eq(index).offset().top,},()=>{
flag =true;});$(this).addClass("hover").siblings().removeClass("hover");});});</script>