//固定导航 $(".fixednav1 div").css("visibility", "hidden"); $(document).ready(function () { $("#menu ul a").mouseover(function () { var index = $(this).text() - 1; $(".fixednav1 div").css("visibility", "hidden"); $(".fixednav1").eq(index).children("div").css("visibility", "visible"); }) $("#menu ul a").mouseleave(function () { var index = $(this).text() - 1; $(".fixednav1 div").css("visibility", "hidden"); }) }); // contact页面********************************************************** $(".mapzunyi,.mapxingyi,.mapliupanshui").hide(0); $(".xguiyang").click(function () { $(".mapguiyang").hide(500); }); $(".pguiyang").click(function () { $(".mapguiyang").show(500); $(".mapzunyi,.mapxingyi,.mapliupanshui").hide(0); }); $(".xzunyi").click(function () { $(".mapzunyi").hide(500); }); $(".pzunyi").click(function () { $(".mapzunyi").show(500); $(".mapguiyang,.mapxingyi,.mapliupanshui").hide(0); }); $(".xliupanshui").click(function () { $(".mapliupanshui").hide(500); }); $(".pliupanshui").click(function () { $(".mapliupanshui").show(500); $(".mapzunyi,.mapxingyi,.mapguiyang").hide(0); }); $(".xxingyi").click(function () { $(".mapxingyi").hide(500); }); $(".pxingyi").click(function () { $(".mapxingyi").show(500); $(".mapzunyi,.mapliupanshui,.mapguiyang").hide(0); }); $(".pagetwo,.pagethree").hide(0); $("#pagetwo,#pagethree").css("background-color", "#bbbbbb"); $("#pageone").click(function () { $(".pageone").show(0); $(".pagetwo,.pagethree").hide(0); $("#pageone").css("background-color", "#178cde"); $("#pagetwo,#pagethree").css("background-color", "#bbbbbb"); }); $("#pagetwo").click(function () { $(".pagetwo").show(0); $(".pageone,.pagethree").hide(0); $("#pagetwo").css("background-color", "#178cde"); $("#pageone,#pagethree").css("background-color", "#bbbbbb"); }); $("#pagethree").click(function () { $(".pagethree").show(0); $(".pageone,.pagetwo").hide(0); $("#pagethree").css("background-color", "#178cde"); $("#pageone,#pagetwo").css("background-color", "#bbbbbb"); }); // 箭头切换 var a1 = 2, a2 = 2, a3 = 2, a4 = 2, a5 = 2, a6 = 2, a7 = 2; // ,.panel1_2,.panel1_3,.panel1_4,.panel2_1,.panel2_2,.panel2_3,.panel2_4,.panel3_1,.panel3_2,.panel3_3,.panel3_4 $(".panel1_1").click(function () { if (a1 % 2 != 0) { $(this).find("span").addclass('glyphicon-menu-right'); $(this).find("span").removeclass('glyphicon-menu-down'); a1++; } else { $(this).find("span").addclass('glyphicon-menu-down'); $(this).find("span").removeclass('glyphicon-menu-right'); a1++; } }); $(".panel1_2").click(function () { if (a2 % 2 != 0) { $(this).find("span").addclass('glyphicon-menu-right'); $(this).find("span").removeclass('glyphicon-menu-down'); a2++; } else { $(this).find("span").addclass('glyphicon-menu-down'); $(this).find("span").removeclass('glyphicon-menu-right'); a2++; } }); $(".panel1_3").click(function () { if (a3 % 2 != 0) { $(this).find("span").addclass('glyphicon-menu-right'); $(this).find("span").removeclass('glyphicon-menu-down'); a3++; } else { $(this).find("span").addclass('glyphicon-menu-down'); $(this).find("span").removeclass('glyphicon-menu-right'); a3++; } }); $(".panel1_4").click(function () { if (a4 % 2 != 0) { $(this).find("span").addclass('glyphicon-menu-right'); $(this).find("span").removeclass('glyphicon-menu-down'); a4++; } else { $(this).find("span").addclass('glyphicon-menu-down'); $(this).find("span").removeclass('glyphicon-menu-right'); a4++; } }); $(".panel1_5").click(function () { if (a5 % 2 != 0) { $(this).find("span").addclass('glyphicon-menu-right'); $(this).find("span").removeclass('glyphicon-menu-down'); a5++; } else { $(this).find("span").addclass('glyphicon-menu-down'); $(this).find("span").removeclass('glyphicon-menu-right'); a5++; } }); $(".panel1_6").click(function () { if (a6 % 2 != 0) { $(this).find("span").addclass('glyphicon-menu-right'); $(this).find("span").removeclass('glyphicon-menu-down'); a6++; } else { $(this).find("span").addclass('glyphicon-menu-down'); $(this).find("span").removeclass('glyphicon-menu-right'); a6++; } }); $(".panel1_7").click(function () { if (a7 % 2 != 0) { $(this).find("span").addclass('glyphicon-menu-right'); $(this).find("span").removeclass('glyphicon-menu-down'); a7++; } else { $(this).find("span").addclass('glyphicon-menu-down'); $(this).find("span").removeclass('glyphicon-menu-right'); a7++; } }); // 公司福利部分 var demobg = document.queryselector(".demo-bg"); var demotxt = document.queryselector(".demo-txt"); function opendialog() { demotxt.style.display = "block"; demobg.style.display = "block"; } function closedialog() { demotxt.style.display = "none"; demobg.style.display = "none"; }