锘 var pagew = $(document).outerWidth(true) + (window.innerWidth - document.body.clientWidth); var pageh = $(window).innerHeight(); try { $(".subfr .b1").addClass("on"); } catch (e) { } try { $(".btn_run a").click(function () { $('body,html').animate({scrollTop:"0px"},500); }); } catch (e) { } try { $("1.subnavfr ul li").each(function () { $(this).css({ "width": $(".subnavfr ul").width() / $(".subnavfr ul li").length + "px" }); $(this).find("b").css({ "width": $(this).find("span").innerWidth() + "px", "margin-left": "-" + $(this).find("span").innerWidth() / 2 + "px" }); }); } catch (e) { } try { var navtcc_c_on = -1; $(".navtcfr .navtc_c .navtcc_c ul li").each(function (i,e) { if ($(this).attr("class") == "on") { navtcc_c_on = i; } $(this).click(function () { if (navtcc_c_on != i) { $(this).addClass("on"); if (navtcc_c_on != -1) { $(this).closest("ul").find("li").eq(navtcc_c_on).removeClass("on"); } navtcc_c_on = i; } }); }) $(".navtcfr .navtc_c .navtcc_t .fl").click(function () { $(".navtcfr").hide(); }); $(".menu_click").click(function () { $(".navtcfr").show(); }); } catch (e) { } try { var ab_08c_max = 1000; $(".ab_08_c ul li").each(function () { $(this).find("em.em1").css({ "height": "auto" }); }); $(".ab_08_c ul li").each(function () { if (ab_08c_max > $(this).find(".em1").height()) { ab_08c_max = $(this).find(".em1").height() } }); $(".ab_08_c ul li").each(function () { $(this).find("em.em1").css({ "height": ab_08c_max + "px" }); }); } catch (e) { } try { $(".sub_01c p.p3 a").click(function () { $('body,html').animate({ scrollTop: $(".subfr").height() + "px" }, 500); }); } catch (e) { } try { if (pagew > 1200) { } else { $(".nd_01_c img").each(function () { $(this).closest("p").css({"text-indent":"0px"}); }); } } catch (e) { } try { $("a").each(function () { $(this).click(function () { if ($(this).attr("href") != "" && $(this).attr("href") != undefined) { if ($(this).attr("href").indexOf("list-3.html") > -1) { $(".navtcfr .navtc_c .navtcc_t .fl").click(); } } }); }); } catch (e) { } try { if (pagew > 1200) { $(".ns_02_select").hover( function () { $(this).find(".ns02s_c").css({ "display": "block" }); }, function () { $(this).find(".ns02s_c").css({ "display": "none" }); } ); } else { $(".ns_02_select").each(function () { $(this).find(".ns02s_t").click(function () { console.log($(this).attr("isop")); if ($(this).attr("isop") != "on") { $(this).attr({ "isop":"on"}); $(this).parent().find(".ns02s_c").css({"display":"block"}); } else { $(this).attr({ "isop": "" }); $(this).parent().find(".ns02s_c").css({ "display": "none" }); } }); }); $(document).mouseup(function (e) { if ($(e.target).parent(".ns_02_select").length == 0) { $(".ns_02_select").attr({"isop":""}); $(".ns_02_select .ns02s_c").css({"display":"none"}); } }) } } catch (e) { } try { if (pagew < 1200) { $(".inbtn_fx ul li").each(function () { $(this).find(".inbfx_t").click(function () { if ($(this).parent().attr("isop") != "on") { $(this).parent().attr({"isop":"on"}); $(".inbtn_fx ul li").find(".inbfx_c").css({ "display": "none" }); $(this).parent().find(".inbfx_c").css({ "display": "block" }); } else { $(this).parent().attr({ "isop": "" }); $(".inbtn_fx ul li").find(".inbfx_c").css({ "display": "none" }); } }); $(this).find(".inbfx_c").click(function () { $(".inbtn_fx ul li").attr({ "isop": "" }).find(".inbfx_c").css({ "display": "none" }); }); }); $(document).mouseup(function (e) { if ($(e.target).closest(".inbtn_fx").length == 0) { $(".inbtn_fx ul li").attr({"isop":""}).find(".inbfx_c").css({ "display": "none" }); } }) } } catch (e) { }