$(function () { jQuery.jqtab = function (tabtit, tab_conbox, shijian) { $(tabtit).find("li").bind(shijian, function () { $(this).addClass("on").siblings("li").removeClass("on"); var activeindex = $(tabtit).find("li").index(this); $(tab_conbox).children().eq(activeindex).show().siblings().hide(); return false; }); }; $.jqtab(".subnavs_01 ul", ".subnavs_01 .slnk", "mouseover"); //$.jqtab(".tiretyp .tab", ".tiretyp .cnt", "click"); $.jqtab(".prdlst .lst_r2 .lnk", ".prdlst .lst .shwmr", "click"); return false; }); $(function () { $("#nav #nav_01").append($('.prbg_01')); $("#nav #nav_02").append($('.prbg_02')); $("#nav #nav_04").append($('.prbg_04')); $("#nav #nav_07").append($('.prbg_07')); $("#nav #nav_08").append($('.prbg_08')); if (($(window).width() > 1024)) { $("#nav .nav_li").hover(function(){ $(this).children(".drpm").show(); },function(){ $(this).children(".drpm").hide(); }); /*$(window).resize(function () { 銆€銆€location.reload(); });*/ }else { $("#nav .nav_li").click(function(){ $(".drpm").hide(); $(this).children(".drpm").show(); }); } $(".micn").click(function(){ $("#nav").toggleClass("navdsk"); $("#shplnk").removeClass("navdsk"); }); $(".shicn").click(function(){ $("#shplnk").toggleClass("navdsk"); $("#nav").removeClass("navdsk"); }); return false; }); $(document).ready(function () { $('.hdr_r .lnk .global').hover( function () { $('ul', this).fadeIn(); }, function () { $('ul', this).fadeOut(); } ); }); $(function () { $('.tsrch_lnk').click(function (event) { event.stopPropagation(); $('.tsrch').toggle(); }) }) $(document).click(function(event){ var _con = $('.tsrch'); if(!_con.is(event.target) && _con.has(event.target).length === 0){ $('.tsrch').hide(); } }); if (($(window).width() < 1024)) { (function() { if (typeof WeixinJSBridge == "object" && typeof WeixinJSBridge.invoke == "function") { handleFontSize(); } else { if (document.addEventListener) { document.addEventListener("WeixinJSBridgeReady", handleFontSize, false); } else if (document.attachEvent) { document.attachEvent("WeixinJSBridgeReady", handleFontSize); document.attachEvent("onWeixinJSBridgeReady", handleFontSize); } } function handleFontSize() { // 璁剧疆缃戦〉瀛椾綋涓洪粯璁ゅぇ灏 WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize' : 0 }); // 閲嶅啓璁剧疆缃戦〉瀛椾綋澶у皬鐨勪簨浠 WeixinJSBridge.on('menu:setfont', function() { WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize' : 0 }); }); } })(); };