$(function() { //头部轮播图 $(".banner .flexslider").flexslider({ animation:'fade', slideshowSpeed: 6000, //展示时间间隔ms animationSpeed: 1000, //滚动时间ms easing:"swing", touch: true, //是否支持触屏滑动 before: function (slider) { //滑动后是否自动轮播 slider.pause(); slider.play(); } }); // //教学科研轮播 // slides() // var currentWidth = 1240; // $(window).resize(function() { // slides() // }); // function slides(){ // var winWidth = $(window).width(); // var conWidth; // if(winWidth <1000) { // x = 15; // y=260 // }else if(winWidth < 1300){ // x = 25; // y=180 // }else { // x = 38; // y=180 // } // $(".mode03 .flexslider").flexslider({ // animation: "slide", // animationLoop: true, // itemWidth: y, // itemMargin: x, // minItems: 1, // maxItems: 4, // touch: true //是否支持触屏滑动 // // pausePlay: true // }); var windowWidth = $(window).width(); //判断Li奇偶数 // $('.mode03 .flexslider .slides > li,.bit-list05 li').each(function(e){ // if(e%2 == 1){ // $(this).addClass('even') // } // }) //图片新闻轮播 // $(".mode04 .flexslider").flexslider({ // animation:'slide', // slideshowSpeed: 6000, //展示时间间隔ms // animationSpeed: 1000, //滚动时间ms // direction:"vertical", // easing:"swing", // touch: true //是否支持触屏滑动 // }); //所有轮播图图标 $('.flex-direction-nav').each(function(e){ $(this).find('a').each(function(){ var $this =$(this) $this.addClass('iconfont'); $this.text(''); if($this.hasClass('flex-prev')){ $(this).addClass('iconjiantouzuo') }else if($this.hasClass('flex-next')){ $(this).addClass('iconjiantouyou') } }) }) //控制头部大图图标 $('.banner .flex-control-paging a').each(function(e){ var $this =$(this) $this.addClass('iconfont'); $this.text(''); $(this).addClass('iconicon') }) }); //数据bifa88 // $(".mode05 .flexslider").flexslider2({ // animation: "slide", // animationLoop: true, // itemWidth: 113, // itemMargin: 15, // minItems:2, // maxItems: 6, // move:1, // slideshowSpeed: 3000, //展示时间间隔ms // touch: true //是否支持触屏滑动 // // pausePlay: true // }); // $('.mode05 .flex-control-paging a').each(function(e){ // var $this =$(this) // $this.addClass('iconfont'); // $this.text(''); // $(this).addClass('icontixing') // })