/*--banner--*/ jQuery(".fullSlide").hover(function(){ jQuery(this).find(".prev,.next").stop(true,true).fadeTo("show",0.5) },function(){ jQuery(this).find(".prev,.next").fadeOut() }); jQuery(".fullSlide").slide({ titCell:".hd ul", mainCell:".bd ul", effect:"fold", autoPlay:true, autoPage:true, trigger:"click", startFun:function(i){ var curLi = jQuery(".fullSlide .bd li").eq(i); if( !!curLi.attr("_src") ){ curLi.css("background-image",curLi.attr("_src")).removeAttr("_src") } } }); var kurl = window.location.href.replace("http://", ''); if (kurl.length - document.domain.length < 2) { $(".0").addClass("another").siblings().removeClass("another"); }; jQuery(".slideBox").slide({ mainCell: ".bd ul", autoPlay: true }); // 教学导师 jQuery(".in_news_1").slide({titCell:".hd ul",mainCell:".in_news_2 dl",autoPage:true,effect:"leftLoop",autoPlay:true,vis: 3,scroll: 1, delayTime:300 }); certifySwiper = new Swiper('#certify .swiper-container', { watchSlidesProgress: true, slidesPerView: 'auto', centeredSlides: true, loop: true, loopedSlides: 5, autoplay: true, on: { progress: function(progress) { for (i = 0; i < this.slides.length; i++) { var slide = this.slides.eq(i); var slideProgress = this.slides[i].progress; modify = 1; if (Math.abs(slideProgress) > 1) { modify = (Math.abs(slideProgress) - 1) * 0.3 + 1; } translate = slideProgress * modify * 198 + 'px'; scale = 1 - Math.abs(slideProgress) / 6; zIndex = 999 - Math.abs(Math.round(10 * slideProgress)); slide.transform('translateX(' + translate + ') scale(' + scale + ')'); slide.css('zIndex', zIndex); slide.css('opacity', 1); if (Math.abs(slideProgress) > 3) { slide.css('opacity', 0); } } }, setTransition: function(transition) { for (var i = 0; i < this.slides.length; i++) { var slide = this.slides.eq(i) slide.transition(transition); } } } })