$(function(){ var myswiper = new swiper ('#swiper_one', { direction: 'horizontal', // 垂直切换选项 effect : 'fade', loop: true, // 循环模式选项 autoplay:{ delay: 3000, disableoninteraction: false }, // 如果需要分页器 pagination: { el: '.swiper-pagination', clickable :true } }); var myswiper = new swiper ('#swiper_two', { direction: 'vertical', // 垂直切换选项 loop: true, // 循环模式选项 autoplay:{ delay: 3000, disableoninteraction: false }, }); var myswiper = new swiper ('#swiper_three', { direction: 'horizontal', // 垂直切换选项 effect : 'fade', observer:true, observeparents:true, loop: true, // 循环模式选项 // 如果需要分页器 pagination: { el: '.swiper-pagination', clickable :true }, navigation: { nextel: '.swiper-button-next', prevel: '.swiper-button-prev', } }); var swiper_seven = new swiper ('#swiper_seven', { direction: 'horizontal', // 垂直切换选项 observer:true, observeparents:true, effect : 'fade', loop: true, // 循环模式选项 // 如果需要分页器 pagination: { el: '.swiper-pagination', clickable :true }, navigation: { nextel: '.swiper-button-next', prevel: '.swiper-button-prev', } }); var myswiper = new swiper ('#swiper_eight', { direction: 'horizontal', // 垂直切换选项 observer:true, observeparents:true, effect : 'fade', loop: true, // 循环模式选项 // 如果需要分页器 pagination: { el: '.swiper-pagination', clickable :true }, navigation: { nextel: '.swiper-button-next', prevel: '.swiper-button-prev', } }); $(".tab_title p").hover(function(){ $(this).addclass("active").siblings().removeclass("active"); $(".tab_content").eq($(".tab_title p").index(this)).addclass('animated fadein').show().siblings(".tab_content").removeclass('fadein').hide(); $(".news_swiper").eq($(".tab_title p").index(this)).addclass('animated fadein').show().siblings(".news_swiper").removeclass('fadein').hide(); var h1 = $(this).parent().height(); var h2 =$(this).siblings('.tab_content').children("ul").height(); var h3 = h1 + h2; $(".news_content .news_swiper").height(h3); }); var myswiper = new swiper ('#swiper_four', { direction: 'vertical', // 垂直切换选项 loop: true, // 循环模式选项 autoplay:{ delay: 6000, disableoninteraction: false }, }); $(".business_tab p").click(function(){ $(this).addclass("tab_active").siblings().removeclass("tab_active"); $(".business_content #tab_content").eq($(".business_tab p").index(this)).addclass('animated fadein').show().siblings(".business_content #tab_content").removeclass('fadein').hide(); }); $(".yd_tab div").click(function(){ $(this).addclass("yd_active").siblings().removeclass("yd_active"); $(".business_content #tab_content").eq($(".yd_tab div").index(this)).addclass('animated fadein').show().siblings(".business_content #tab_content").removeclass('fadein').hide(); }); $(".business_list li").hover(function(){ $($(this).children("a")).addclass('animated fadein').show().parent().siblings().children("a").removeclass('fadein').hide(); }); $(".investor_img").mouseenter(function(){ $(this).children("span").addclass('animated rubberband'); }) $(".investor_img").mouseleave(function(){ $(this).children("span").removeclass('rubberband'); }) $(".investor_right .sj").mouseenter(function(){ $(".sj").first().children("span").children().attr('src','res/default/img/gxsytb02.png'); $(".sj").first().children("span").children().addclass('animated rubberband'); }); $(".investor_right .sj").mouseleave(function(){ $(".sj").first().children("span").children().attr('src','res/default/img/i_03.jpg'); $(".sj").first().children("span").children().removeclass('rubberband'); }); $(".investor_right .fb").mouseenter(function(){ $(".fb").last().children("span").children().attr('src','res/default/img/gxsytb03.png') $(".fb").last().children("span").children().addclass('animated rubberband'); }); $(".investor_right .fb").mouseleave(function(){ $(".fb").last().children("span").children().attr('src','res/default/img/i_04.jpg') $(".fb").last().children("span").children().removeclass('rubberband'); }); })