$(function() { $('nav#mmenu').mmenu({ extensions : [ 'effect-slide-menu', 'pageshadow' ], counters : false, navbar : { title : '菜单', }, navbars : [ { position : 'top', content : [ 'prev', 'title', 'close' ] }, { position : 'bottom', content : [ '' ] } ] }); }); /* ---------------------------------------------------------------------------------------- 濞村繗顫嶉崳銊у閺堫剚甯撮崣锟� 娴h法鏁ら敍锟� if (getieversion() == "ie8") alert("yes!"); ---------------------------------------------------------------------------------------- */ function getieversion(){ if(navigator.appname == "microsoft internet explorer" && navigator.appversion .split(";")[1].replace(/[ ]/g,"")=="msie6.0") { return "ie6"; } else if(navigator.appname == "microsoft internet explorer" && navigator.appversion .split(";")[1].replace(/[ ]/g,"")=="msie7.0") { return "ie7"; } else if(navigator.appname == "microsoft internet explorer" && navigator.appversion .split(";")[1].replace(/[ ]/g,"")=="msie8.0") { return "ie8"; } else if(navigator.appname == "microsoft internet explorer" && navigator.appversion .split(";")[1].replace(/[ ]/g,"")=="msie9.0") { return "ie9"; } } $(function(){ $(".weixin").hover(function(){ $("img[src='images/weixinh.png']").attr('src','images/weixin.png'); },function(){ $("img[src='images/weixin.png']").attr('src','images/weixinh.png'); }) $(".weibo").hover(function(){ $("img[src='images/weiboh.png']").attr('src','images/weibo.png'); },function(){ $("img[src='images/weibo.png']").attr('src','images/weiboh.png'); }) }) $(document).ready(function() { if($("#menu > div").length > 5){ $('#menu').slick({ slidestoshow:5, infinite:false }); if($("#menu .cur").length>0){ $("#menu").slick("slickgoto",$("#menu .cur").parent().data("slick-index")-4); } } else { $('#menu').slick({ slidestoshow:5, infinite:false }); } }); // $(function(){ // $(".honorcon ul li").hover(function(){ // $(this).find(".zzc").show(); // }) // }) $(function(){ $(".job ul li").click(function(){ $(this).toggleclass("active"); $(this).find(".jobcon").toggleclass("slidedown"); }) $(".job ul li .jobcon").click(function(event){ $(this).show(); event.stoppropagation(); }) }) $(function(){ $(".nav ul li").hover(function(){ $(this).find("ul").addclass("slideright"); $(this).find("ul").show(); },function(){ $(this).find("ul").removeclass("slideright"); $(this).find("ul").hide(); }) }) $(function(){ $(".nav ul li ul li").hover(function(){ $(this).find(".three").show(); },function(){ $(this).find(".three").hide(); }) })