base.js 722 B

12345678910111213141516171819202122232425262728
  1. $(function(){
  2. //导航
  3. $("#header_nav_list>li").mouseover(function(event){
  4. var num = $(this).index();
  5. $("#header_sed_nav_con ul").eq(num).css("display","block").siblings("ul").css("display","none");
  6. $("#header_sed_nav_con ul").eq(num).mouseover(function(event){
  7. $("#header_sed_nav_con ul").eq(num).css("display","block").siblings("ul").css("display","none");
  8. event.stopPropagation();
  9. })
  10. event.stopPropagation();
  11. })
  12. $('#header_nav_list>li').mouseout(function(event){
  13. $('#header_sed_nav_con ul').css('display','none');
  14. $('#header_sed_nav_con ul').mouseout(function(event){
  15. $(this).css('display','none');
  16. event.stopPropagation();
  17. });
  18. event.stopPropagation();
  19. });
  20. })