base.js 742 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. /*大屏*/
  3. $(function(){
  4. nav();
  5. })
  6. //导航条点击添加样式
  7. function nav(){
  8. //$(".nav>ul>li").click(function(){
  9. // var href=$(this).find("a").attr("href");
  10. // var t=href.indexOf("html");
  11. // var ins;
  12. // if(t!=-1){
  13. // ins=$(this).index();
  14. // $(".nav>ul>li").eq(ins).addClass("nav_active");
  15. // window.location.href=href;
  16. //
  17. //
  18. // }
  19. // else{
  20. // $(this).addClass("nav_active").siblings().removeClass("nav_active");
  21. // }
  22. //
  23. //})
  24. $(".nav>ul>li").hover(function(){
  25. $(this).find(".li_ul").stop(true,true).slideDown("slow");
  26. stop();
  27. },function(){
  28. $(this).find(".li_ul").slideUp("slow");
  29. })
  30. }