锘縡unction CheckInternetExplorer() { var bVersion = navigator.appVersion; var version = bVersion.split(";"); if (version.length > 1) { var trimVersion = parseInt(version[1].replace(/[ ]/g, "").replace(/MSIE/g, "")); var $body = document.getElementsByTagName("body")[0]; var msg = "
鎮ㄥソ锛屼綘褰撳墠浣跨敤鐨処E娴忚鍣ㄧ増鏈繃浣庯紝涓轰簡鑾峰彇鏇村ソ鐨勬祻瑙堜綋楠岋紝寤鸿浣犱娇鐢ㄨ胺姝?chrome)\鐏嫄(Firefox)绛夋爣鍑嗘祻瑙堝櫒锛屾垨鍗囩骇IE10+浠ヤ笂鐗堟湰锛?/div>"; if (trimVersion <= 9) { msg += $body.innerHTML; $body.innerHTML = msg; } } } //淇濊瘉鎵€鏈夊搷搴斿紡鍥剧墖鍒楄〃鍚屼竴灏哄锛岄伩鍏嶄笂浼犲浘鐗囧昂瀵镐笉涓€鑷存帓鐗堟贩涔 $(function () { var $imageSameSize = $(".imgae-same-size"); $imageSameSize.each(function () { var $this = $(this); var $images = $this.find("img"); if ($images.length == 0) { return true; } var $firstImg = $images.eq(0); //$(window).on("onload",function(){}) //寮冪敤锛屾晥鐜囧お浣?瑕佺瓑鎵€鏈夐〉闈㈠浘鐗囧姞杞藉畬姣曟墠鎵ц //$images.eq(0).attr("onload", function (){$images.ImageSameSize()}); //寮冪敤鐏嫄娴忚鍣ㄤ笅鑾峰彇涓嶅埌鍝嶅簲寮忓浘鐗囩殑瀹為檯楂樺害 var img = new Image(); img.src = $firstImg.attr("src"); img.onload = function () { $images.ImageSameSize(); }; }); }); //鑷姩閫傚簲灏哄锛屽鏋滃鍣ㄥ垪琛ㄩ」鍐呮湁鍥剧墖闇€瑕佽嚜鍔ㄩ€傚簲瀹藉害鍜岄珮搴︼紝鎵€鏈夊鍣ㄤ腑鐨勫浘鐗囨枃浠跺昂瀵搁粯璁ょ敤鍚岀骇绗竴涓鍣ㄥ昂瀵搞€ ;(function ($, window, undefined) { $.fn.ImageSameSize = function (index) { var $objs = this; if (index == undefined) { index = 0; } var $templateImage = $objs.eq(index); var SetSize = function () { var height = $templateImage.css("height").replace(/\s+|px/gi, ""); var width = $templateImage.css("width").replace(/\s+|px/gi, ""); $objs.each(function (idx) { $(this).css({ "width": width + "px", "height": height + "px" }); }); }; SetSize(); var bindResize = $templateImage.attr("data-bindResize"); if (bindResize == undefined) { $(window).resize(function () { $templateImage.css({ "width": "auto","height": "auto" }); SetSize(); }); $templateImage.attr("data-bindresize", 1); } }; })(jQuery, window); //娉ㄥ唽鍝嶅簲寮忚彍鍗 ; (function ($, window, undefined) { $.fn.InitNav = function (currentColumnId,topColumnId) { var $navLiItem = this; if (currentColumnId == undefined) { currentColumnId = "0"; } if (topColumnId == undefined) { topColumnId = "0"; } //娣诲姞瀛愮骇鑿滃崟鎸囩ず绠ご $navLiItem.each(function () { var $this = $(this); if ($this.children("ul").length > 0) { $this.children("ul").children("li").addClass("animated navSlide"); $this.append(''); } var attrDataId = $this.attr("data-id"); if (attrDataId == topColumnId.toString()) { $this.addClass("current active"); } else if (attrDataId == currentColumnId) { $this.addClass("current active"); var $thisParentLi = $this.parentsUntil("div"); $thisParentLi.addClass("current active");//缁欐墍鏈夌殑鐖剁骇li娣诲姞current active鏍峰紡 } }); //鎸囩ず绠ご娉ㄥ唽鐐瑰嚮浜嬩欢 $navLiItem.find(".arrow").on("click", function () { var $this = $(this); $this.parent("li").toggleClass("active"); }); }; })(jQuery, window); //棣栭〉-鏂伴椈鍒囨崲琛ㄨЕ鍙戜簨浠 $(function () { var $tab_title = $(".tab-title"); var $tab_content = $(".tab-content"); var widths = $(window).width(); $(window).resize(function () { widths = $(window).width(); }) $tab_title.each(function (i) { var $this = $(this); $this.find("li").each(function (w) { var $thisli = $(this); if (widths < 999) { $thisli.click(function () { $thisli.addClass("select").siblings().removeClass("select"); $tab_content.eq(i).find(".tabct").eq(w).show().siblings().hide(); }) } if (widths > 1000) { $thisli.click(function () { $thisli.addClass("select").siblings().removeClass("select"); $tab_content.eq(i).find(".tabct").eq(w).show().siblings().hide(); }) } }) }) })