;(function(window){
    $('.menuitem').hover(function(){
        $('>a',this).css('background-color','#60AEEC');

$('.subnav',this).show();

$('.subnav',this).width(function(){
           return $('.subnav').children("li:visible").width()*$('.subnav').children("li:visible").length;
       });
       var sleft = $(this).offset().left-($('.subnav').children("li:visible").width()*$('.subnav').children("li:visible").length-150)/2;
       $('.subnav',this).offset({left:sleft});
    },function(){
        if( !$(this).hasClass('selected') )
            $('>a',this).css('background-color','transparent');
        $('.subnav',this).hide();
    });
     /*$('.subnav').hover(function(){},function(){
        $('>a',this).css('background-color','transparent');
        $(this).hide();
    });*/

})(window);

最新文章

  1. 从java文件和CS文件里查询方法使用次数工具
  2. 关于java中接口定义常量和类定义常量的区别
  3. PHPStorm 与 XDebug 配置
  4. Rational Rose 2007 破解版安装过程
  5. NSString几个函数
  6. VC文件夹大小(转)
  7. ServiceStack 介绍
  8. HDOJ-ACM1023(JAVA)
  9. Vijos1825 NOI2008 志愿者招募 费用流
  10. sql server 2000 下载地址
  11. django generic view - ListView
  12. HTTP的基本原理
  13. git format-patch制作内核补丁
  14. 上海市2019年公务员录用考试笔试合格人员笔试成绩(A类)
  15. Kotlin入门(6)条件分支的实现
  16. 洛谷.4114.Qtree1(树链剖分)
  17. ruby-from-other-languages
  18. Spring学习笔记四:SpringAOP的使用
  19. 使用Koa2搭建web项目
  20. Java 8 Date-Time API概览

热门文章

  1. 基于Verilog HDL 各种实验
  2. angularJs-UI-bootstrap系列教程1(使用前的准备)
  3. Windows下编译mxnet
  4. word 书签排序算法
  5. codeforce 611C New Year and Domino
  6. javascript技巧大全套
  7. php 依赖注入容器
  8. (简单) FZU 1686 神龙的难题 , DLX+可重复覆盖。
  9. EHCache分布式缓存集群环境配置
  10. axis2开发实例(二)建立独自的新工程