// banner if (document.body.scrollwidth > 1024) { if (!(/msie [6|7|8|9]/i.test(navigator.useragent))) { new wow().init(); }; } $(document).ready(function () { if($(".cgjt_banner").css("display")!='none'){ var myswiper = new swiper('.banner', { speed: 3000, effect: 'fade', autoplay: { delay: 4000, stoponlastslide: false, disableoninteraction: true, }, on: { init: function () { swiperanimatecache(this); this.emit('slidechangetransitionend'); }, slidechangetransitionend: function () { swiperanimate(this); } } }); } // 新闻轮播 var newsswiper = new swiper('.news-lb', { loop:true, speed: 2000, //preventclicks : false,//默认true autoplay: { delay: 2000, stoponlastslide: false, disableoninteraction: true }, pagination: { el: '.news-lb-pagination', type: 'fraction' } }); // 新闻切换 $(".news-tab-title-inbox").on("hover", ".news-tab-title-content", function() { $(this).addclass("active").siblings().removeclass("active"); $(".cgjt_news-tab-content").children(".dnnmodule-gtmodulescms").hide().eq($(".news-tab-title-content").index(this)).show(); }) // 业务 /* $(".yewu-inbox-list").eq(0).on("mouseenter",function () { $(this).find(".yewu-list-text .news-title").html("汽车产业") }) $(".yewu-inbox-list").eq(0).on("mouseleave",function () { $(this).find(".yewu-list-text .news-title").html("汽车产业") }) $(".yewu-inbox-list").eq(1).on("mouseenter",function () { $(this).find(".yewu-list-text .news-title").html("通航产业") }) $(".yewu-inbox-list").eq(1).on("mouseleave",function () { $(this).find(".yewu-list-text .news-title").html("通航产业") }) $(".yewu-inbox-list").eq(2).on("mouseenter",function () { $(this).find(".yewu-list-text .news-title").html("能源产业") }) $(".yewu-inbox-list").eq(2).on("mouseleave",function () { $(this).find(".yewu-list-text .news-title").html("能源产业") }) $(".yewu-inbox-list").eq(3).on("mouseenter",function () { $(this).find(".yewu-list-text .news-title").html("房地产业") }) $(".yewu-inbox-list").eq(3).on("mouseleave",function () { $(this).find(".yewu-list-text .news-title").html("房地产业") }) $(".yewu-inbox-list").eq(4).on("mouseenter",function () { $(this).find(".yewu-list-text .news-title").html("石化仓储") }) $(".yewu-inbox-list").eq(4).on("mouseleave",function () { $(this).find(".yewu-list-text .news-title").html("石化仓储") }) */ });