$(function(){ /*主大图切换*/ $(".mbanner .focus").sudyfocus({ p:2, zWidth:1920, zHeight:570, title:{ isAutoWidth: false, isAutoHeight: true, active:true }, text:{ active: false, isAutoHeight: false, href: false }, response: true, speed:700, pagination: false, navigation: true, isNavHover: true, href:true, effect: 'fade' }); $(".focus1").sudyfocus({ p:11, zWidth:580, zHeight:435, title:{ isAutoWidth: false, active:true }, text: { active: false, isAutoHeight: false, href: false }, response: true, speed:700, pagination: true, navigation: true, isNavHover: false, href:true, effect: 'fade' }); $('.post-13 .scroll').slick({ dots: true , //指示点 infinite: true, //循环播放 autoplay: true, //自动播放 autoplaySpeed: 5000, //自动播放间隔 arrows: false, //左右箭头 useCSS: true, //使用 CSS3 过度 speed: 600, //滑动时间 slide: 'li', //滑动元素查询 slidesToShow: 1, //幻灯片每屏显示个数 slidesToScroll: 1 //幻灯片每次滑动个数 }); $(".post-31 li").hover(function() { $(this).siblings().removeClass('active'); $(this).addClass('active'); }); });