锘?/婊氬姩鎻掍欢 (function ($) { $.fn.extend({ ProductScroll: function (opt, callback) { //鍙傛暟鍒濆鍖 if (!opt) var opt = {}; var _Arrow_Left = this.eq(0).find(".Slider_Arrow_Left"); var _Arrow_Right = this.eq(0).find(".Slider_Arrow_Right"); var _this = this.eq(0); var _this_MainContent = this.eq(0).find(".MainBox"); var ColNum = _this_MainContent.find(".ColCss").length; var lineW = _this_MainContent.find("div:first").width(), //鑾峰彇鍒楀 mincol = opt.mincol ? parseInt(opt.mincol, 10) : 1, //鍗峰姩閫熷害锛屾暟鍊艰秺澶э紝閫熷害瓒婃參锛堟绉掞級 speed = opt.speed ? parseInt(opt.speed, 10) : 500, //鍗峰姩閫熷害锛屾暟鍊艰秺澶э紝閫熷害瓒婃參锛堟绉掞級 timer = opt.timer ? parseInt(opt.timer, 10) : 3000; //婊氬姩鐨勬椂闂撮棿闅旓紙姣锛 var MoveWidth = lineW; //婊氬姩鍑芥暟 scrollOp = function (direction) { if (direction == 1) { _this_MainContent.animate({ marginLeft: -MoveWidth }, speed, function () { _this_MainContent.find("div:first").appendTo(_this_MainContent); _this_MainContent.css({ marginLeft: 0 }); }); } else { var _this_last_index = _this_MainContent.find(".ColCss").last().index(); _this_MainContent.find(".ColCss").eq(_this_last_index).prependTo(_this_MainContent); _this_MainContent.css({ marginLeft: -MoveWidth }); _this_MainContent.animate({ marginLeft: 0 }, speed, function () { }); } } //榧犳爣浜嬩欢缁戝畾 _this.hover(function () { if (ColNum > mincol) { //_Arrow_Left.show(); //_Arrow_Right.show(); clearInterval(timerID); } }, function () { if (ColNum > mincol) { //_Arrow_Left.hide(); //_Arrow_Right.hide(); timerID = setInterval("scrollOp(1)", timer); } }).mouseout(); _Arrow_Left.click(function () { scrollOp(1); }); _Arrow_Right.click(function () { scrollOp(2); }); } }); })(jQuery); $(document).ready(function () { $(".Home_Product_Scroll").ProductScroll({ mincol: 4, speed: 500, timer: 4000 }); var document_width = $(document.body).width(); var document_height = $(document.body).height(); var window_width = $(window).width(); var window_height = $(window).height(); $("#MainMenu>ul>li").mouseover(function() { if (!$(this).children('div').is(":animated")) { $(this).children('div').css("top", $(this).position().top + $(this).height()); var CurrIndex = $(this).index(); var MaxTxtLength = 0; $(this).children(".TopSubMenu").children(".ContentBox").find("a").each(function() { var SinTxt = $(this).children("span").html(); var SinLength = GetStrLength(SinTxt); MaxTxtLength = SinLength > MaxTxtLength ? SinLength : MaxTxtLength; }); var SubMenuWidth = MaxTxtLength * 5 + 100; var TopMenuWidth = $(this).width(); SubMenuWidth = SubMenuWidth <= TopMenuWidth ? TopMenuWidth : SubMenuWidth; var SubMenuLeft_Pos = SubMenuWidth <= TopMenuWidth ? $(this).position().left : $(this).position().left - ((SubMenuWidth - TopMenuWidth) / 2); $(this).children('div').css("left", SubMenuLeft_Pos); $(this).children('div').width(SubMenuWidth); $(this).children('div').slideDown('fast'); if ($(this).attr("class").toLocaleLowerCase().indexOf("mainmenutoplevelon") == -1) { $(this).children('a').addClass("MainTopMenuHover"); $(this).children('a').removeClass("MainTopMenuOut"); } $(this).children('div').css("z-index", "2147483643"); } }); $("#MainMenu>ul>li").mouseleave(function() { $(this).children('div').slideUp('fast'); if ($(this).attr("class").toLocaleLowerCase().indexOf("mainmenutoplevelon") == -1) { $(this).children('a').addClass("MainTopMenuOut"); $(this).children('a').removeClass("MainTopMenuHover"); } }); $("#MainMenu>ul>li>.TopSubMenu>.ContentBox>ul>li").mouseover(function() { var CurrIndex = $(this).index(); if (!$(this).children('.ThreeLevelBox').is(":animated")) { var TopPos = 35; var TrueTopPos = CurrIndex * TopPos; $(this).children('.ThreeLevelBox').css("top", $(this).position().top); $(this).children('.ThreeLevelBox').css("left", $(this).position().left + $("#MainMenu>ul>li").width()); $(this).children('.ThreeLevelBox').width($("#MainMenu>ul>li").width()); $(this).children('.ThreeLevelBox').show(); $(this).children('.ThreeLevelBox').eq(CurrIndex).css("z-index", "2147483643"); $(this).children('a').addClass("TopThreeLevelOn"); $(this).children('a').removeClass("TopThreeLevelOut"); } }); $("#MainMenu>ul>li>.TopSubMenu>.ContentBox>ul>li").mouseleave(function() { var CurrIndex = $(this).index(); $(this).children('.ThreeLevelBox').hide(); $(this).children('a').addClass("TopThreeLevelOut"); $(this).children('a').removeClass("TopThreeLevelOn"); }); $("#LeftMainSubMenu>div").bind('mouseover', function() // 椤剁骇鑿滃崟椤圭殑榧犳爣绉诲叆鎿嶄綔 { if (!$(this).children('div').is(":animated")) { $(this).children('div .LeftMainSubCodeMenu').show(); $(this).children('div .LeftMainSubMenuAttac').show(); $(this).children('div').first().addClass("LeftMainSubMenuFirstHover"); $(this).children('div').first().removeClass("LeftMainSubMenuFirstOut"); $(this).css("z-index", "0"); $(this).children('div').css("z-index", "100"); $(this).children('div').css("top", $(this).children('div').first().position().top); $(this).children('div').css("left", $(".LeftMainSubMenuBg").first().position().left + 198); $(this).children('.LeftMainSubMenuAttac').css("top", $(this).children('div').first().position().top); } }).bind('mouseleave', function() // 椤剁骇鑿滃崟椤圭殑榧犳爣绉诲嚭鎿嶄綔 { $(this).children('div .LeftMainSubCodeMenu').hide(); $(this).children('div .LeftMainSubMenuAttac').hide(); $(this).children('div').first().addClass("LeftMainSubMenuFirstOut"); $(this).children('div').first().removeClass("LeftMainSubMenuFirstHover"); $(this).css("z-index", "0"); $(this).children('div').css("z-index", "0"); }); $(".ReadmeMoreArrowBtn_Out>img").click(function() { $(".ReadmeTxtBoxCss").hide(); $(".ReadmeMoreArrowBtn_Out").hide(); $(".ReadmeTxtBoxCssMore").show(); $(".ReadmeMoreArrowBtn_More").show(); }); $(".ReadmeMoreArrowBtn_More>img").click(function() { $(".ReadmeTxtBoxCssMore").hide(); $(".ReadmeMoreArrowBtn_More").hide(); $(".ReadmeTxtBoxCss").show(); $(".ReadmeMoreArrowBtn_Out").show(); }); $(".LeftMainProductFloatContent .TopMenuContentBox").bind('mouseover', function() // 椤剁骇鑿滃崟椤圭殑榧犳爣绉诲叆鎿嶄綔 { $(this).children("div[class^='MenuFirst']").addClass("MenuFirstHover"); $(this).children("div[class^='MenuFirst']").removeClass("MenuFirstOut"); }).bind('mouseleave', function() // 椤剁骇鑿滃崟椤圭殑榧犳爣绉诲嚭鎿嶄綔 { $(this).children("div[class^='MenuFirst']").addClass("MenuFirstOut"); $(this).children("div[class^='MenuFirst']").removeClass("MenuFirstHover"); }); $(".LeftMainProductFloatContent .TopMenuContentBox .MainSubListConent").bind('mouseover', function() // 椤剁骇鑿滃崟椤圭殑榧犳爣绉诲叆鎿嶄綔 { $(this).children("div[class^='MenuSub']").addClass("MenuSubHover"); $(this).children("div[class^='MenuSub']").removeClass("MenuSubOut"); $(this).children(".EliteProductBox").show(); $(this).children(".EliteProductBox").css("top", $(this).children("div[class^='MenuSub']").first().position().top); $(this).children(".EliteProductBox").css("left", $(this).children("div[class^='MenuSub']").first().position().left + $(this).children("div[class^='MenuSub']").first().width()); }).bind('mouseleave', function() // 椤剁骇鑿滃崟椤圭殑榧犳爣绉诲嚭鎿嶄綔 { $(this).children("div[class^='MenuSub']").addClass("MenuSubOut"); $(this).children("div[class^='MenuSub']").removeClass("MenuSubHover"); $(this).children(".EliteProductBox").hide(); }); var IsExist_Web_Left_ProductMenu_IsShowSubMenu = $(".LeftMainProductFloatContent .IsShowSubMenu").length; if (IsExist_Web_Left_ProductMenu_IsShowSubMenu > 0) { $(".LeftMainProductFloatContent .TopMenuContentBox div[class^='MenuFirst']").click(function() { var display_value = $(this).parent().children(".MainSubListConent").css("display"); if (display_value == "none") { $(this).parent().children(".MainSubListConent").css("display", "block"); $(this).parent().siblings().each(function() { $(this).children(".MainSubListConent").css("display", "none"); }); } }); } $("#TopSearchFormBtn").mouseover(function() { $(this)[0].src = "/App_Themes/SkinSim/SearchFormBtn_Hover.gif"; }); $("#TopSearchFormBtn").mouseleave(function() { $(this)[0].src = "/App_Themes/SkinSim/SearchFormBtn_Out.gif"; }); // $("#TopSearchTxt").val("杈撳叆鎼滅储璇?); // $("#TopSearchTxt").focus(function() { // var ThisValue = $(this).val(); // if (ThisValue == "杈撳叆鎼滅储璇?) // $(this).val(""); //}); // $("#TopSearchTxt").blur(function() { // var ThisValue = $(this).val(); //if (ThisValue == "") // $(this).val("杈撳叆鎼滅储璇?); // }); var IsExist_BannerImgBox = $(".Web_Top_Banner_ContentBox .BannerImgBox").length; if (IsExist_BannerImgBox > 0) { var Web_Top_BannerImg_End_Img = new Image(); Web_Top_BannerImg_End_Img.onload = function() { var ThisImg = $(".Web_Top_Banner_ContentBox .BannerImgBox .ImgBox").find("img")[0]; var This_Img_Width = ThisImg.width; var This_Img_Height = ThisImg.height; var This_Img_SizeRatio = This_Img_Width / This_Img_Height; $(".Web_Top_Banner_ContentBox").height(This_Img_Height); $(".Web_Top_Banner_ContentBox").height(This_Img_Height); $(".Web_Top_Banner_ContentBox .BannerImgBox").height(This_Img_Height); $(".Web_Top_Banner_ContentBox .BannerImgBox .ImgBox").css("left", (document_width - This_Img_Width) / 2 + "px"); $(".Web_Top_Banner_ContentBox .Loading_Box").animate({ opacity: "0" }, 1, function() { $(".Web_Top_Banner_ContentBox .Loading_Box").hide(); }); $(".Web_Top_Banner_ContentBox .BannerImgBox").animate({ opacity: "1" }, 200); } Web_Top_BannerImg_End_Img.src = $(".Web_Top_Banner_ContentBox .BannerImgBox .ImgBox").find("img")[0].src; } $(document).pngFix(); //linear锛宻wing锛宩swing锛宔aseInQuad锛宔aseOutQuad锛宔aseInOutQuad锛宔aseInCubic锛 easeOutCubic锛宔aseInOutCubic锛宔aseInQuart锛宔aseOutQuart锛宔aseInOutQuart锛 easeInQuint锛宔aseOutQuint锛宔aseInOutQuint锛宔aseInSine锛宔aseOutSine锛 easeInOutSine锛宔aseInExpo锛宔aseOutExpo锛宔aseInOutExpo锛宔aseInCirc锛 easeOutCirc锛宔aseInOutCirc锛宔aseInElastic锛宔aseOutElastic锛宔aseInOutElastic锛 easeInBack锛宔aseOutBack锛宔aseInOutBack锛宔aseInBounce锛宔aseOutBounce锛宔aseInOutBounce $.easing.def = "easeOutQuad"; //璁剧疆榛樿鏁堟灉 var IsExist_Web_Page_Arrow_PreviousBtn = $("div[class^='Web_Page_Arrow_PreviousBtn']").length; if (IsExist_Web_Page_Arrow_PreviousBtn > 0) { $("div[class^='Web_Page_Arrow_PreviousBtn']").css("top", $("div[class^='Web_All_Sub_Main']").position().top + ($("div[class^='Web_All_Sub_Main']").height() - $("div[class^='Web_Page_Arrow_PreviousBtn']").height() / 2) / 2 + "px"); $("div[class^='Web_Page_Arrow_PreviousBtn']").css("left", (document_width - $("div[class^='Web_All_Sub_Main']").width()) / 2 - 80 + "px"); $("div[class^='Web_Page_Arrow_PreviousBtn']").animate({ opacity: "1" }, 200); } var IsExist_Web_Page_Arrow_NextBtn = $("div[class^='Web_Page_Arrow_NextBtn']").length; if (IsExist_Web_Page_Arrow_NextBtn > 0) { $("div[class^='Web_Page_Arrow_NextBtn']").css("top", $("div[class^='Web_All_Sub_Main']").position().top + ($("div[class^='Web_All_Sub_Main']").height() - $("div[class^='Web_Page_Arrow_NextBtn']").height() / 2) / 2 + "px"); $("div[class^='Web_Page_Arrow_NextBtn']").css("left", (document_width - $("div[class^='Web_All_Sub_Main']").width()) / 2 + $("div[class^='Web_All_Sub_Main']").width() + 80 + "px"); $("div[class^='Web_Page_Arrow_NextBtn']").animate({ opacity: "1" }, 200); } $("div[class^='Web_Page_Arrow_PreviousBtn']").mouseover(function() { $(this).addClass("Web_Page_Arrow_PreviousBtn_Hover"); $(this).removeClass("Web_Page_Arrow_PreviousBtn_Out"); }); $("div[class^='Web_Page_Arrow_PreviousBtn']").mouseleave(function() { $(this).addClass("Web_Page_Arrow_PreviousBtn_Out"); $(this).removeClass("Web_Page_Arrow_PreviousBtn_Hover"); }); $("div[class^='Web_Page_Arrow_PreviousBtn']").click(function() { window.location.href = $(this).find("span").html(); }); $("div[class^='Web_Page_Arrow_NextBtn']").mouseover(function() { $(this).addClass("Web_Page_Arrow_NextBtn_Hover"); $(this).removeClass("Web_Page_Arrow_NextBtn_Out"); }); $("div[class^='Web_Page_Arrow_NextBtn']").mouseleave(function() { $(this).addClass("Web_Page_Arrow_NextBtn_Out"); $(this).removeClass("Web_Page_Arrow_NextBtn_Hover"); }); $("div[class^='Web_Page_Arrow_NextBtn']").click(function() { window.location.href = $(this).find("span").html(); }); $(".FnCol1,.FnCol2,.FnCol3,.FnCol4,.MainBox .ColCss").each(function () { var Img_Index = $(this).index(); var Sin_Img = $(this).find('img'); var Sin_Box_Width = $(this).find(".ImgData").find("table").width(); var Sin_Box_Height = $(this).find(".ImgData").find("table").height(); var Web_Img = new Image(); Web_Img.onload = function () { var Sin_Img_Width = Web_Img.width; var Sin_Img_Height = Web_Img.height; var ImgSizeRatio = Sin_Img_Width / Sin_Img_Height; if (Sin_Img_Width > Sin_Box_Width) { Sin_Img_Width = Sin_Box_Width; Sin_Img_Height = Sin_Img_Width / ImgSizeRatio; } if (Sin_Img_Height > Sin_Box_Height) { Sin_Img_Height = Sin_Box_Height; Sin_Img_Width = Sin_Img_Height * ImgSizeRatio; } Sin_Img[0].width = Sin_Img_Width; Sin_Img[0].height = Sin_Img_Height; Sin_Img.css("display", "block"); Sin_Img.stop(true, false).animate({ opacity: "1" }, 800); } Web_Img.src = Sin_Img[0].src; }); $(".Home_ClassImgList_Box .RowCss .ColCss").each(function () { var Img_Index = $(this).index(); var Sin_Img = $(this).find(".ImgBox").find('img'); var Sin_Box_Width = $(this).find(".ImgBox").find("table").width(); var Sin_Box_Height = $(this).find(".ImgBox").find("table").height(); var Web_Img = new Image(); Web_Img.onload = function () { var Sin_Img_Width = Web_Img.width; var Sin_Img_Height = Web_Img.height; var ImgSizeRatio = Sin_Img_Width / Sin_Img_Height; if (Sin_Img_Width > Sin_Box_Width) { Sin_Img_Width = Sin_Box_Width; Sin_Img_Height = Sin_Img_Width / ImgSizeRatio; } if (Sin_Img_Height > Sin_Box_Height) { Sin_Img_Height = Sin_Box_Height; Sin_Img_Width = Sin_Img_Height * ImgSizeRatio; } Sin_Img[0].width = Sin_Img_Width; Sin_Img[0].height = Sin_Img_Height; Sin_Img.css("display", "block"); Sin_Img.stop(true, false).animate({ opacity: "1" }, 800); } Web_Img.src = Sin_Img[0].src; }); $(".Home_GalleryImgList_Box .RowCss .ColCss").each(function () { var Img_Index = $(this).index(); var Sin_Img = $(this).find(".ImgBox").find('img'); var Sin_Box_Width = $(this).find(".ImgBox").find("table").width(); var Sin_Box_Height = $(this).find(".ImgBox").find("table").height(); var Web_Img = new Image(); Web_Img.onload = function () { var Sin_Img_Width = Web_Img.width; var Sin_Img_Height = Web_Img.height; var ImgSizeRatio = Sin_Img_Width / Sin_Img_Height; if (Sin_Img_Width > Sin_Box_Width) { Sin_Img_Width = Sin_Box_Width; Sin_Img_Height = Sin_Img_Width / ImgSizeRatio; } if (Sin_Img_Height > Sin_Box_Height) { Sin_Img_Height = Sin_Box_Height; Sin_Img_Width = Sin_Img_Height * ImgSizeRatio; } Sin_Img[0].width = Sin_Img_Width; Sin_Img[0].height = Sin_Img_Height; Sin_Img.css("display", "block"); Sin_Img.stop(true, false).animate({ opacity: "1" }, 800); } Web_Img.src = Sin_Img[0].src; }); $(".InforListColContentPic1 .ImgData").each(function () { var Img_Index = $(this).index(); var Sin_Img = $(this).find('img'); var Sin_Box_Width = $(this).find("table").width(); var Sin_Box_Height = $(this).find("table").height(); var Web_Img = new Image(); Web_Img.onload = function () { var Sin_Img_Width = Web_Img.width; var Sin_Img_Height = Web_Img.height; var ImgSizeRatio = Sin_Img_Width / Sin_Img_Height; if (Sin_Img_Width > Sin_Box_Width) { Sin_Img_Width = Sin_Box_Width; Sin_Img_Height = Sin_Img_Width / ImgSizeRatio; } if (Sin_Img_Height > Sin_Box_Height) { Sin_Img_Height = Sin_Box_Height; Sin_Img_Width = Sin_Img_Height * ImgSizeRatio; } Sin_Img[0].width = Sin_Img_Width; Sin_Img[0].height = Sin_Img_Height; Sin_Img.css("display", "block"); Sin_Img.stop(true, false).animate({ opacity: "1" }, 800); } Web_Img.src = Sin_Img[0].src; }); $(".Web_Job_ListData_Box .Data_Title_Box").click(function() { var CurrIndex = $(this).parent().index(); $(".Web_Job_ListData_Box .Main_Row_Data_Box").each(function() { var SinIndex = $(".Web_Job_ListData_Box .Main_Row_Data_Box").index(this); if (SinIndex == CurrIndex) { $(this).find(".Data_Title_Box .RightBox").html("-"); $(this).find(".Data_Readme_Box").show(); } else { $(this).find(".Data_Title_Box .RightBox").html("+"); $(this).find(".Data_Readme_Box").hide(); } }); }); $(".Home_AboutUs_ContentBox .MainTopDataBox .Tab_Btn_Box span").click(function () { var select_index = $(".Home_AboutUs_ContentBox .MainTopDataBox .Tab_Btn_Box span").index(this); $(this).addClass("OnCss"); $(this).removeClass("OutCss"); $(".Home_AboutUs_ContentBox .MainTopDataBox .Tab_Btn_Box span").eq(select_index).siblings().each(function () { $(this).addClass("OutCss"); $(this).removeClass("OnCss"); }); $(".Home_AboutUs_ContentBox .MainTopDataBox .Tab_DataContent_Box .Tab_Sin_Data_Box").eq(select_index).css("display", "block"); $(".Home_AboutUs_ContentBox .MainTopDataBox .Tab_DataContent_Box .Tab_Sin_Data_Box").eq(select_index).siblings().each(function () { $(this).css("display", "none"); }); }); }); $(window).resize(function() { var document_width = $(document.body).width(); var document_height = $(document.body).height(); var window_width = $(window).width(); var window_height = $(window).height(); var IsExist_BannerImgBox = $(".Web_Top_Banner_ContentBox .BannerImgBox").length; if (IsExist_BannerImgBox > 0) { var ThisImg = $(".Web_Top_Banner_ContentBox .BannerImgBox .ImgBox").find("img")[0]; var This_Img_Width = ThisImg.width; var This_Img_Height = ThisImg.height; var This_Img_SizeRatio = This_Img_Width / This_Img_Height; $(".Web_Top_Banner_ContentBox").height(This_Img_Height); $(".Web_Top_Banner_ContentBox").height(This_Img_Height); $(".Web_Top_Banner_ContentBox .BannerImgBox").height(This_Img_Height); $(".Web_Top_Banner_ContentBox .BannerImgBox .ImgBox").css("left", (document_width - This_Img_Width) / 2 + "px"); } var IsExist_Web_Page_Arrow_PreviousBtn = $("div[class^='Web_Page_Arrow_PreviousBtn']").length; if (IsExist_Web_Page_Arrow_PreviousBtn > 0) { $("div[class^='Web_Page_Arrow_PreviousBtn']").css("top", $("div[class^='Web_All_Sub_Main']").position().top + ($("div[class^='Web_All_Sub_Main']").height() - $("div[class^='Web_Page_Arrow_PreviousBtn']").height() / 2) / 2 + "px"); $("div[class^='Web_Page_Arrow_PreviousBtn']").css("left", (document_width - $("div[class^='Web_All_Sub_Main']").width()) / 2 - 80 + "px"); $("div[class^='Web_Page_Arrow_PreviousBtn']").animate({ opacity: "1" }, 200); } var IsExist_Web_Page_Arrow_NextBtn = $("div[class^='Web_Page_Arrow_NextBtn']").length; if (IsExist_Web_Page_Arrow_NextBtn > 0) { $("div[class^='Web_Page_Arrow_NextBtn']").css("top", $("div[class^='Web_All_Sub_Main']").position().top + ($("div[class^='Web_All_Sub_Main']").height() - $("div[class^='Web_Page_Arrow_NextBtn']").height() / 2) / 2 + "px"); $("div[class^='Web_Page_Arrow_NextBtn']").css("left", (document_width - $("div[class^='Web_All_Sub_Main']").width()) / 2 + $("div[class^='Web_All_Sub_Main']").width() + 80 + "px"); $("div[class^='Web_Page_Arrow_NextBtn']").animate({ opacity: "1" }, 200); } });