/*涓诲鑸彸渚ф悳绱?-寮€濮?/ $(document).ready(function() { $( "#keyword" ).autocomplete({ source: '/dig/keywordAssociate.action' }); }); function globSearch(obj){ var sUrl = "/dig/ui/search.action?&sr=score desc&rp=&q="; var key = document.getElementById("keyword").value; if(key == ""){ alert("鍏抽敭瀛椾笉鑳戒负绌?!"); return false; } key = encodeURI(key); window.open(sUrl+key); } /*涓诲鑸彸渚ф悳绱?-缁撴潫*/ /* 璺宠浆鍒皌web.crec.cn */ /* 鍒ゆ柇娴忚鍣ㄧ増鏈 */ var myView = 11; function myBrowser() { var userAgent = navigator.userAgent; var isOpera = userAgent.indexOf("Opera") > -1; //鍒ゆ柇鏄惁Opera娴忚鍣 var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera; //鍒ゆ柇鏄惁IE娴忚鍣 var isEdge = userAgent.indexOf("Edge") > -1 && !isIE; //鍒ゆ柇鏄惁IE鐨凟dge娴忚鍣 var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1; var isFF = userAgent.indexOf("Firefox") > -1; //鍒ゆ柇鏄惁Firefox娴忚鍣 var isSafari = userAgent.indexOf("Safari") > -1; //鍒ゆ柇鏄惁Safari娴忚鍣 if (isIE) { var IE5 = IE55 = IE6 = IE7 = IE8 = IE9 = IE10 = IE11 = false; var reIE = new RegExp("MSIE (\\d+\\.\\d+);"); reIE.test(userAgent); var fIEVersion = parseFloat(RegExp["$1"]); IE55 = fIEVersion == 5.5; IE6 = fIEVersion == 6.0; IE7 = fIEVersion == 7.0; IE8 = fIEVersion == 8.0; IE9 = fIEVersion == 9.0; IE10 = fIEVersion == 10; //IE9 = fIEVersion == 9.0; if (IE55) { return "IE55"; } if (IE6) { return "IE6"; } if (IE7) { return "IE7"; } if (IE8) { return "IE8"; } if (IE9) { return "IE9"; } if (IE10) { return "IE10"; } } //isIE end if (isIE11) { return "IE11"; } if (isEdge) { return "Edge"; } if (isFF) { return "FF"; } if (isOpera) { return "Opera"; } } //myBrowser() end //浠ヤ笅鏄皟鐢ㄤ笂闈㈢殑鍑芥暟 if (myBrowser() == "FF") { myView = 11; } if (myBrowser() == "Opera") { myView = 11; } if (myBrowser() == "Safari") { myView = 11; } if (myBrowser() == "IE55") { myView = 5; } if (myBrowser() == "IE6") { myView = 6; } if (myBrowser() == "IE7") { myView = 7; } if (myBrowser() == "IE8") { myView = 8; } if (myBrowser() == "IE9") { myView = 9; } if (myBrowser() == "IE10") { myView = 10; } if (myBrowser() == "IE11") { myView = 11; } if (myBrowser() == "Edge") { myView = 11; } var srcWid = $(window).width(); $(function(){ //瀵艰埅鑿滃崟 jQuery(".nav").slide({ type:"menu", titCell:"ul li", targetCell:".sub_menu",effect:"slideDown",delayTime:300,triggerTime:0,defaultPlay:false,returnDefault:true}); //绉诲姩绔鑸彍鍗 $(".mobile_meun").css("top",$(".header").outerHeight()) $(".mobile_bar").click(function(){ $(".mobile_meun").slideToggle() }) $(".mobile_meun li").eq(0).find("em").hide(); $(".mobile_meun li em").click(function(){ $(".mobile_meun li .sub_menu_m").hide() $(this).parent().next().show(); }) //澶撮儴鎼滅储 $(".search span").click(function(event){ $(".search form").animate({right:'0px'}); event.stopPropagation(); }) $(".search form").click(function(event){ $(".search form").animate({right:'0px'}); event.stopPropagation(); }) $(document).click(function(event){ $(".search form").animate({right:'-500px'}); event.stopPropagation(); }) //搴曢儴鑲$エ浠g爜 $(".foot_gupiao p").eq(1).find("span").eq(0).text("H鑲★細鑲$エ浠g爜") })