$(".tab_list li").bind("mouseover", function () { $(this).parent().find("li").removeClass("on"); $(this).addClass("on"); var index = $(this).parent().find("li").index($(this)); $(this).parent().parent().parent().next().find("div.box_cm>div").hide().eq(index).show(); }); $("#CloseBtn").click(function () { $(this).parent().hide(); }); var dasaiHide = new Array("988b8998-3304-41cc-82d6-80735ebecd73", "b27a189b-57b8-4667-bafc-e41e30c12b55", "f320ef4a-7ae3-4801-9754-bcf96aa6f9a9" , "d496316a-1974-46c1-8501-8c7425dac149", "144ea75f-54c4-440d-8c83-9f1a55409b94", "f53cb258-771c-4cdf-b096-f565f20b6fed", "a148dd7b-4f01-4a39-82fe-1211f73ab0d1" , "bd0cdeaf-1e5d-480f-8960-17672a792a42", "cdb4d4bc-a7c4-4e99-87db-cb9967e41407", "92f0ed84-91c0-405c-b202-8dbcf809565a", "0a0c5208-b7cd-4c2a-af50-beb6941f53a3" , "a503eec8-bddb-4e9a-bedc-c87c9fdfcf48", "a02e0284-83af-4e76-b811-00fe72271c4a", "317fcb51-4f84-4e47-9058-02fd6b0baa8c", "3665d1d1-86b2-44a5-8d0f-a5a1cb96d6a2" , "e9347033-2ab0-4f4a-b312-43633248e0df", "a0556445-d57f-4b2b-a1a4-1fa34b60faa5", "cf53d2e0-4943-49d9-b64a-dc2f60286dd7", "45b7e7c8-6b20-4704-9724-872c368daf7c" , "93ce240b-5610-475d-96b8-5a577f522454", "ae609151-54dd-4eb4-be40-f716d336805a", "3f1b16ee-7160-402d-89c3-7da9a7d0cb18", "30b4081b-c56f-470a-a36d-692e393a76d6" , "8e05267c-7262-49f6-a10e-ce8208c1d01a", "3b21b6d3-e334-4455-91c9-24f76c2a7e17", "1e845f8a-dc2e-4f4e-8934-a8c3f12c79dc", "5c2b6eb5-1cbd-452d-badb-f2d11d805b16" , "1c555234-c7c2-45e5-abc0-49840f28e836", "bd31ad82-59dc-45b0-bd49-2d1383c8f465", "86a6e020-6630-44bb-9e8c-b65147411059", "efd75521-e702-4a88-a7ca-aa3471eb9fd0" , "ffd49509-5003-4491-bc5f-8c43c52d8280", "490d579f-fa82-47f5-9170-13a48771d366", "027f9544-05dd-496e-b327-2e26faeb734f", "c1c88504-cd5e-4e74-a35f-fbffa50ed8eb" , "3593ee49-df75-4eba-9e43-5c2b8bc40539", "2ad9713b-376f-4c4d-a3e2-1aa0964423f2", "b208288b-5a2e-4966-9de2-d218c6ad9a9e", "7157f0e6-1110-43fa-87cc-7649595b2cdd" , "a7b062c5-6e75-49ac-a133-ef426b7f2beb", "e3447164-06c3-4db6-ad8a-12594e5bca31", "71d5beb2-50b9-4a58-9fa5-84796773185c", "112a8138-b706-4eb1-83e2-299ca3f41659" , "e0463213-34a8-4db0-b1bd-e44a5cca6704", "8da171d4-fd8b-46e4-8b61-cbf5ac65c3a9", "dd64cbd2-3296-412f-bfd6-ce325f8672f3", "8964c5d7-1b5b-448d-895e-fe6f40026114" , "6a14fb9c-7166-4d2f-9107-8ef77fbf0cc2", "df540dc6-5aba-4626-b029-dba64fb29dfe", "d9d19881-d875-4849-8b56-8a64f02fd1a7", "7ae7f1a6-960a-483e-8472-50262a1ee35e" , "42b75ca3-e923-4596-aad6-b1dbb28decd6", "6779de89-5e07-4996-8d84-122a1804eaed", "91c39ee2-975c-4435-81cc-e7d222a2acdb", "4f678110-58e4-4c90-a78a-cf83b7ba409f" , "1505aea2-b2cd-4198-8cd8-5dbc000fc260", "757ed497-154f-45d3-b18c-fac5ee567684", "ee3450f5-20c3-480c-a3dd-d6e8f4e29223", "b1f16be3-90c9-4089-b389-11e5b871bd2c" , "ed40b8f0-f250-4267-8ffb-25d28340c90a", "8b5605a4-edee-45aa-966d-5c909737174e", "e97efaf1-be8d-4e8b-81c2-45ba39a45583", "6fbf6ead-e0ff-4863-a195-82db6b2c6ee6" , "db38ab34-0963-4785-bb0c-410351e24ea3", "5be2b1ac-8ba3-4bb5-a238-c03b95eb0db9", "f6d73eb2-ba92-41ad-a2a1-742522249a99", "cf963fe2-2b47-47d7-ad57-56d3021a91f3" , "8abdf4a9-e225-4ae7-b8be-c220986bfad7", "8263275e-5200-4826-b323-03052238af2e", "0ba170a3-80fa-4b59-b06a-b000d8ee3f36", "d926d508-b3cf-4b7f-b7a7-2b1b955a9ef1" , "8213aa46-bb31-4722-8523-36516dbccf14", "ba8d4554-cacd-4e37-a9de-820069314f93", "b2a52361-50bb-496a-a352-274508430d5f", "0cd2f8ce-8302-4c38-8008-575453b0a15b" , "3ddbe17d-732d-4876-af79-135b8746570b", "73430453-0711-4712-974b-a6aed48b0f4d", "7eb6b6ec-a735-437b-9f64-9bed5ac164e8", "cbce7be4-2445-4120-bc23-8b4654837ed7" , "a82e42d3-ba9f-4237-8007-419379c204da", "0cf8a53c-d03b-4249-8ea9-0db49cc1329c", "c7192b73-d08a-4bb9-a764-9cddf43c7211", "e357604b-3ffb-4936-b942-1cc2bf996156" , "703d1dcf-e9ef-4acc-ab3e-5f9ca8afeef6", "cf87b583-8572-4fb8-a933-8dca0c6aa2d0", "87d695a8-6bd1-4d90-b444-4424120bf35a", "2056ef71-6083-4869-a4a3-e5b98dbc106a" , "4fde73ec-d918-47f5-833f-22b85bb2e08d", "0a0d88d9-cd4e-4942-af64-29fdb7b271cc", "6c55fcfa-558c-4d05-94a0-5e66a5b523db", "38941cc5-7c35-4b5a-9d1b-ebdd932a0156" , "4e9019db-555c-418d-b446-e864c54c834f", "2b1f90bb-0d41-4377-b1ce-30eb289e9950"); for (var i = 0; i < dasaiHide.length; i++) { if (dasaiHide[i].toString() == window.UnitID.toString()) $("#CloseBtn").parent().hide(); } var benAn = ["8c2e1933-b4a7-4fa3-ad82-e0c6a7a310b6", "25d8fdf1-436f-4a8a-83c4-d1508c15e9f0"]; $(function () { for (var i = 0; i < benAn.length; i++) { if (benAn[i].toString() == window.UnitID.toString()) { var foothtml = $(".info").html().replace("
京公网安备11010502032087", ""); $(".info").html(foothtml); } } }); //事业单位图片连接跳转地址 var hideBiaoshi = new Array("c396908f-b93b-438e-94b2-29c4c8703013"); $(function () { for (var i = 0; i < hideBiaoshi.length; i++) { if (hideBiaoshi[i].toString() == window.UnitID.toString()) { var href = $(".rightSeriation a").attr("href"); href = href.replace("http://t.30edu.com.cn/referrer.html#", ""); $(".rightSeriation a").attr("href", href); } } }); $(".fullContainer").each(function () { var width = $(this).parents(".box_cm").outerWidth(); var height = $(this).parents(".box_cm").outerHeight(); $(this).attr("src", $(this).attr("src") + "?imageView2/1/w/" + width + "/h/" + height); }); //宽屏显示下需要使用的js事件 WebPartsWide = { //输出幻灯模块 WebFlashPicTab: function () { $(".slide").each(function () { var slideBoxW = $(this).width(); var boxH = $(this).parent().height(); var summaryH = $(this).find(".ad_b").eq(0).outerHeight(true); $(this).find(".ad_b").each(function () { var sh = summaryH; var sha = $(this).outerHeight(true); if (sh < sha) { summaryH = sha; } }); var slideBoxH = boxH - summaryH; var slideID = $(this).find(".slideBox").attr("id"); var slidePicID = $(this).find(".slidePic").attr("id"); var tabID = $(this).find(".tablist").attr("id"); $(this).height(boxH); $(this).find(".slideBox li").css({ width: slideBoxW, height: slideBoxH }); $(this).find(".ad_b").children("div").width(slideBoxW); $(this).find(".slidePic img").each(function () { var screenRatio = slideBoxW / slideBoxH; var imgRatio = ($(this).width()) / ($(this).height()); if (imgRatio > screenRatio) { $(this).css({ width: "auto", height: "100%" }); } else { $(this).css({ width: "100%", height: "auto", position: "absolute", top: 0, left: 0, right: 0, bottom: 0, margin: "auto" }); } }); var liCount = $(this).find(".slidePic").children("li").length; if (liCount > 1) { //循环图片数量大于1时启动轮播 new Marquee([slideID, slidePicID, tabID, "onclick"], 2, 0.1, slideBoxW, slideBoxH, 20, 5000, 5000, slideBoxW, 0); } }); }, //输出相册模块 || 输出视频模块 WebPhotoTab: function () { $(".showcase_wall").each(function () { var slideDirection = Number($(this).attr("data-direction")); //-1不滚动 if (slideDirection < 0) { return true; } var moduleWidth = $(this).parent().width(); var albumHeight = $(this).children(".shell").height(); var albumliNum = $(this).find("ul").eq(0).children("li").length; var showLiNum = Math.round(moduleWidth / 190); var albumliW = Math.round(moduleWidth / showLiNum) - 2; var albumWidth = albumliW * showLiNum; var albumID = $(this).children(".shell").attr("id"); var albumCoreID = $(this).children(".shell").children("div").attr("id"); $(this).find("li").width(albumliW); $(this).css("margin", "0px " + (moduleWidth - albumliW * showLiNum) / 2 + "px"); var albumSlideStep = albumliW; if ($(this).hasClass("showDouble")) { var singlelinum = Math.round(albumliNum / 2); $(this).find("ul").width(singlelinum * albumliW); } if (slideDirection == 0 || slideDirection == 1) { //$(this).find("ul").width(albumWidth); $(this).find("ul").css({ width: albumWidth, whiteSpace: "normal" }); albumSlideStep = $(this).find("ul").children("li").outerHeight(true); } var 速度 = 0.1; var 间歇 = 5000; if ($(this).attr("nostop") == "True") { 速度 = 2; 间歇 = 0; } new Marquee([albumID, albumCoreID], slideDirection, 速度, albumWidth, albumHeight, 20, 间歇, 2000, albumSlideStep, 0); }); }, //输出历史上今天模块 WebHistoryTab: function () { $(".historyBox").each(function () { var hteWidth = $(this).parent().width(); var htHeight = $(this).parent().height(); var htID = $(this).attr("id"); var htCoreID = $(this).children(".ht_list").attr("id"); new Marquee([htID, htCoreID], 0, 1, hteWidth, htHeight, 50, 0, 1000); }); }, //通知公告 WebNotiesTab: function () { $(".noteBox").each(function () { var dva = ($(this).outerWidth(true)) - ($(this).width()); var noteWidth = ($(this).parent().width()); var noteHeight = $(this).parent().height(); var way = 0; if ($(this).parent().hasClass("notesH")) { way = 2; } else { way = 0; noteWidth = noteWidth - dva; } var noteID = $(this).attr("id"); var noteCoreID = $(this).children("ul.news").attr("id"); new Marquee([noteID, noteCoreID], way, 1, noteWidth, noteHeight, 50, 0, 2000); }); }, //查询模块 选择下拉 WebFormSearch: function (obj) { var formSearch = $(obj).find("option:selected"); var typeName = formSearch.attr("ulID"); var meul = $(obj).parent().parent().parent().parent(); meul.nextAll().hide(); meul.parent().find("ul#" + typeName).show(); }, //查询模块 提交查询 WebFormSearchSubmit: function (obj) { var meIndiv = $(obj).parent().parent().parent(); var formSearch = meIndiv.find('ul.inquire option:selected'); var typeName = formSearch.attr('ulID'); //var categoryID = formSearch.attr('categoryID'); var id = formSearch.val(); var key = []; var isSearch = false; meIndiv.find('ul#' + typeName + ' li input.txtBox').each(function () { var inpval = $(this).val(); key.push(inpval); if (inpval != '') { isSearch = true; } }); if (!isSearch) { alert('请输入搜索条件'); return; } var temFrom = document.createElement("form"); temFrom.setAttribute("method", "POST"); temFrom.setAttribute("action", "http://" + window.SchoolApp.BD + "/Search/" + id + ".shtml?search=" + JSON.stringify(key)); temFrom.setAttribute("target", "_blank"); document.body.appendChild(temFrom); temFrom.submit(); } };