function closeDialog() { $("#shadow").fadeOut(); } $(function () { $.ajax({ type: "post", url: "/ipp/gjj/action/notification!getNotification.action?t=" + new Date().getTime(), async: false, success: function (msg) { if (msg && msg.state == 'exist') { $('#tzggTitle').html(msg.title); $('#tzggTime').html(msg.time); $('#tzggCont').html(msg.content); $('#tzggSource').html(msg.source); $("#shadow").fadeIn(); } }, error: function (e) { alert('异步错误!'); } }); }); $(function () { $(".swiperBig").PageSwitch({ direction: 'horizontal', easing: 'ease-in', duration: 1000, autoPlay: false, keyboard: 'false', loop: 'false' }); $(".swiperSmall").PageSwitch({ direction: 'horizontal', easing: 'ease-in', duration: 5000, autoPlay: true, keyboard: 'false', loop: 'false' }); $(".swiperlong").PageSwitch({ direction: 'horizontal', easing: 'ease-in', duration: 1000, autoPlay: false, keyboard: 'false', loop: 'false' }); $(".noticeTabNav li").off("mouseout").on("mouseover", function () { var index = $(this).index(); $(this).addClass("noticeTabCheck").siblings().removeClass("noticeTabCheck"); $(".noticeArea .noticeBox").eq(index).addClass("noticeCheck").siblings().removeClass("noticeCheck"); }); $(".partyTabNav li").off("mouseout").on("mouseover", function () { var index = $(this).index(); $(this).addClass("partyTabCheck").siblings().removeClass("partyTabCheck"); $(".partyArea .partyBox").eq(index).addClass("partyCheck").siblings().removeClass("partyCheck"); }); $(".questionTabNav li").off("mouseover").on("mouseover", function () { var index = $(this).index(); $(this).addClass("questionTabCheck").siblings().removeClass("questionTabCheck"); console.log(index); $(".questionArea .questionBox").eq(index).addClass("questionCheck").siblings().removeClass("questionCheck"); }); $(".toggleBtn").click(function () { if ($(this).text() == ("展开")) { $(this).text("收起"); } else { $(this).text("展开"); }; $(this).toggleClass('openBtn'); $(".codeArea").slideToggle(); }); $('#index').addClass('govListActive'); }); $(function () { });