function syn(form){ form.action = '/jsearch/index.jsp'; form.style.value = '1'; form.appid.value = '1'; form.webid.value = '1'; } $(document).ready(function() { $("#dianj").click(function(){ $(".jiansuo").slideToggle("fast") ; }); }); function getWinWidth() { var t = window, n = document, i = n.documentElement, e = n.getElementsByTagName("body")[0], a = t.innerWidth || i.clientWidth || e.clientWidth; return a } window.onload = function() { var t = getWinWidth(), n = document.getElementsByTagName("html")[0]; t < 1366 ? (n.className = "cosco_mini", $(".nav-bt-line").width(38), $(".topnav-show").find(".topnav-list").each(function() { $(this).hover(function() { var t = $(this).index(); 0 == t ? $(".nav-bt-line").stop().animate({ left: "0px" }, 300) : 1 == t ? $(".nav-bt-line").stop().animate({ left: "77px" }, 300) : 2 == t ? $(".nav-bt-line").stop().animate({ left: "196px" }, 300) : 3 == t ? $(".nav-bt-line").stop().animate({ left: "336px" }, 300) : 4 == t ? $(".nav-bt-line").stop().animate({ left: "455px" }, 300) : 5 == t ? $(".nav-bt-line").stop().animate({ left: "700px" }, 300) : 6 == t && $(".nav-bt-line").stop().animate({ left: "816px" }, 300) }, function() { $(".nav-bt-line").stop().animate({ left: "0px", width: "38px" }, 300) }) }), $(".top-nav").find("a").each(function() { $(this).hover(function() { if (0 == $(this).index()) $(".nav-bt-line").stop().animate({ left: "0px", width: "38px" }, 300); else { var t = $(this).offsetParent().context.offsetLeft + 0; $(".nav-bt-line").stop().animate({ left: t, width: "84px" }, 300) } }, function() { $(".nav-bt-line").stop().animate({ left: "0px", width: "38px" }, 300) }) })) : t >= 1366 && t <= 1400 ? n.className = "cosco_mid" : t > 1400 && (n.className = "cosco_wide", $(".nav-bt-line").css("left", "0px"), $(".topnav-show").find(".topnav-list").each(function() { $(this).hover(function() { var t = $(this).index(); 0 == t ? $(".nav-bt-line").stop().animate({ left: "0px" }, 300) : 1 == t ? $(".nav-bt-line").stop().animate({ left: "77px" }, 300) : 2 == t ? $(".nav-bt-line").stop().animate({ left: "196px" }, 300) : 3 == t ? $(".nav-bt-line").stop().animate({ left: "336px" }, 300) : 4 == t ? $(".nav-bt-line").stop().animate({ left: "455px" }, 300) : 5 == t ? $(".nav-bt-line").stop().animate({ left: "700px" }, 300) : 6 == t && $(".nav-bt-line").stop().animate({ left: "816px" }, 300) }, function() { $(".nav-bt-line").stop().animate({ left: "0px", width: "38px" }, 300) }) }), $(".top-nav").find("a").each(function() { $(this).hover(function() { if (0 == $(this).index()) $(".nav-bt-line").stop().animate({ left: "0px", width: "38px" }, 300); else { var t = $(this).offsetParent().context.offsetLeft + 0; $(".nav-bt-line").stop().animate({ left: t, width: "84px" }, 300) } }, function() { $(".nav-bt-line").stop().animate({ left: "0px", width: "38px" }, 300) }) })) }, window.onresize = function() { var t = getWinWidth(), n = document.getElementsByTagName("html")[0]; t < 1366 ? (n.className = "cosco_mini", $(".nav-bt-line").width(38), $(".topnav-show").find(".topnav-list").each(function() { $(this).hover(function() { var t = $(this).index(); 0 == t ? $(".nav-bt-line").stop().animate({ left: "0px" }, 300) : 1 == t ? $(".nav-bt-line").stop().animate({ left: "77px" }, 300) : 2 == t ? $(".nav-bt-line").stop().animate({ left: "196px" }, 300) : 3 == t ? $(".nav-bt-line").stop().animate({ left: "336px" }, 300) : 4 == t ? $(".nav-bt-line").stop().animate({ left: "455px" }, 300) : 5 == t ? $(".nav-bt-line").stop().animate({ left: "700px" }, 300) : 6 == t && $(".nav-bt-line").stop().animate({ left: "816px" }, 300) }, function() { $(".nav-bt-line").stop().animate({ left: "0px", width: "38px" }, 300) }) }), $(".top-nav").find("a").each(function() { $(this).hover(function() { if (0 == $(this).index()) $(".nav-bt-line").stop().animate({ left: "0px", width: "38px" }, 300); else { var t = $(this).offsetParent().context.offsetLeft + 0; $(".nav-bt-line").stop().animate({ left: t, width: "84px" }, 300) } }, function() { $(".nav-bt-line").stop().animate({ left: "0px", width: "38px" }, 300) }) })) : t >= 1366 && t <= 1400 ? (n.className = "cosco_mid", $(".nav-bt-line").width(56), $(".topnav-show").find(".topnav-list").each(function() { $(this).hover(function() { var t = $(this).index(); 0 == t ? $(".nav-bt-line").stop().animate({ left: "0px" }, 300) : 1 == t ? $(".nav-bt-line").stop().animate({ left: "77px" }, 300) : 2 == t ? $(".nav-bt-line").stop().animate({ left: "196px" }, 300) : 3 == t ? $(".nav-bt-line").stop().animate({ left: "336px" }, 300) : 4 == t ? $(".nav-bt-line").stop().animate({ left: "455px" }, 300) : 5 == t ? $(".nav-bt-line").stop().animate({ left: "700px" }, 300) : 6 == t && $(".nav-bt-line").stop().animate({ left: "816px" }, 300) }, function() { $(".nav-bt-line").stop().animate({ left: "0px", width: "38px" }, 300) }) }), $(".top-nav").find("a").each(function() { $(this).hover(function() { if (0 == $(this).index()) $(".nav-bt-line").stop().animate({ left: "0px", width: "38px" }, 300); else { var t = $(this).offsetParent().context.offsetLeft + 0; $(".nav-bt-line").stop().animate({ left: t, width: "84px" }, 300) } }, function() { $(".nav-bt-line").stop().animate({ left: "0px", width: "38px" }, 300) }) })) : t > 1400 && (n.className = "cosco_wide"), $(".main-nav_list").each(function() { var t = 5 * $(this).width() + 4; $(this).find(".popshow").css("width", t) }) }, $(function() { $(".top-search").click(function() { $(".topnav-show").find(".topnav-list").hide(), $(".main-search").toggle() }), $(".main-search").on("click", ".icon-close", function() { $(".main-search").fadeOut() }); var t = $(".top-nav"), n = $(".nav-bt-line"), i = $(".topnav-show"), e = null, a = t.find("a"); a.attr("data-num"); a.each(function() { $(this).hover(function() { $(".main-search").hide(), clearTimeout(e); var a = $(this).attr("data-num"); if (0 == a) n.stop().animate({ left: "0" }, 300); else { var o = $(this).offsetParent().context.offsetLeft + 12; n.stop().animate({ left: o }, 300) } // console.log(a); switch (Number(a)) { case 0: i.find(".topnav-list").hide().eq(0).show(); break; case 1: i.find(".topnav-list").hide().eq(1).show(); break; case 2: i.find(".topnav-list").hide().eq(2).show(); break; case 3: i.find(".topnav-list").hide().eq(3).show(); break; case 4: i.find(".topnav-list").hide().eq(4).show(); break; case 5: i.find(".topnav-list").hide().eq(5).show(); break; case 6: i.find(".topnav-list").hide(); break; case 7: i.find(".topnav-list").hide().eq(7).show(); break; case 8: i.find(".topnav-list").hide(); break; } }, function() { e = setTimeout(function() { i.find(".topnav-list").hide() }, 50), n.stop().animate({ left: "5px" }, 300) }) }), i.find(".topnav-list").hover(function() { var t = i.find(".topnav-list").index($(this)); 0 == t ? n.stop().animate({ left: "74px" }, 300) : 1 == t ? n.stop().animate({ left: "164px" }, 300) : 2 == t ? n.stop().animate({ left: "254px" }, 300) : 3 == t ? n.stop().animate({ left: "344px" }, 300) : 4 == t ? n.stop().animate({ left: "434px" }, 300) : 5 == t ? n.stop().animate({ left: "524px" }, 300) : 6 == t && n.stop().animate({ left: "614px" }, 300), clearTimeout(e), $(this).slideDown() }, function() { e = setTimeout(function() { i.find(".topnav-list").hide() }, 50), a.removeClass("on"), n.stop().animate({ left: "0" }, 300) }); var o = $(".son-comnav"), s = o.find("li"); o.height(280), s.eq(0).find(".cont").show(), s.eq(0).children("a").addClass("on"), s.eq(0).children("a").find(".icon-arror").addClass("arror-down"), s.each(function() { $(this).hover(function() { s.children("a").removeClass("on"), $(this).children("a").addClass("on"), s.find(".icon-arror").removeClass("arror-down"), $(this).find(".icon-arror").addClass("arror-down"), o.height(150), s.find(".cont").hide(), o.stop(!1, !0).animate({ height: "280px" }), $(this).find(".cont").fadeIn(0) }, function() { s.children("a").removeClass("on"), s.find(".icon-arror").removeClass("arror-down"), $(this).find(".cont").fadeOut(0, function() { $(this).find(".cont").css("display", "none") }), o.height(280), s.eq(0).find(".cont").show() }) }) }), $(function() { $(".tap-tit").find("li").hover(function() { $(this).addClass("on").siblings().removeClass("on"), $(".tap-div").find(".contlist").eq($(this).index()).show().siblings().hide() }), $(".senior-list").on("click", ".text-down", function() { $(this).parents(".info").hide(), $(this).parents(".info").siblings(".info-more").slideDown() }), $(".senior-list").on("click", ".text-up", function() { $(this).parents(".info-more").hide(), $(this).parents(".info-more").siblings(".info").slideDown() }) }); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln("
"); document.writeln(" "); document.writeln(""); document.writeln(" "); document.writeln("