$(function(){ /*主大图切换*/ $(".mbanner .focus_2").sudyfocus({ p:2, zWidth:1920, zHeight:450, title:{ isAutoWidth: true, active:true }, text:{ active: false, isAutoHeight: false, href: false }, response: true, speed:700, pagination: true, navigation: true, isNavHover: true,// 导航按钮是否默认隐藏,鼠标经过时再显示 href:true, effect: 'fade' }); /*新闻图片切换*/ $(".post-11 .focus2").sudyfocus({ p:11, zWidth:410, zHeight:300, title:{ isAutoWidth: false, active:true }, text: { active: true, isAutoHeight: true, href: true }, response: true, speed:700, pagination: true, navigation: true, isNavHover: false, href:true, effect: 'fade' }); /* $(".post-41").sudyTab({ handle:".tit .title", content:".more_btn a,.con .boxm", trigger:"mouseenter", start:1, autoPlay:{ active:false } }); */ $(".post-41").sudyTab({ handle:".tit .title", content:".more_btn a,.con .boxm", trigger:"mouseenter", start:1, autoPlay:{ active:true, interval:6000, pauseHover:true } }); $(".post-42").sudyTab({ handle:".tit1 .title1", content:".more_btn1 a,.con .boxm1", trigger:"mouseenter", start:1, autoPlay:{ active:false } }); $(".focus31").sudyfocus({ p:31, zWidth:320, zHeight:162, title:{ isAutoWidth: true, active:false }, response: true, speed:700, pagination: true, navigation: false, isNavHover: true, href:true, effect: 'fade' }); }); /*友情链接下拉*/ $(".botlinks").each(function(index, el){ $(el).find(".links-wrap").hover(function(){ $(this).addClass('wrap-open').children('.link-items').stop(true,true).slideDown(300); },function(){ $(this).removeClass('wrap-open').children('.link-items').stop(true,true).slideUp(100); }); }); $(function(){ /*主大图切换*/ $(".mbanner .focus_236").sudyfocus({ p:100, zWidth:1600,//设置展示窗口宽度 zHeight:460,//设置展示窗口高度 response: true,// 是否自适应缩放,默认为false,当前为true speed:700, // 切换速度 autoPlay: true, // 是否自动播放 pagination: true,// 是否显示按钮,1、2、3、4... navigation: true,// 是否显示按钮,上一张、下一张 isNavHover: true,// 导航按钮是否默认隐藏,鼠标经过时再显示 href:true, effect: 'fade'// slide(滑动),fade(淡入),show(即显) }); /*新闻切换*/ $(".mod1-l .focus1").sudyfocus({ p:3, zWidth:635,//设置展示窗口宽度 zHeight:390,//设置展示窗口高度 title:{ isAutoWidth: true, active:true }, text:{ active:true }, response: true,// 是否自适应缩放,默认为false,当前为true speed:700, // 切换速度 autoPlay: true, // 是否自动播放 pagination: true,// 是否显示按钮,1、2、3、4... navigation: true,// 是否显示按钮,上一张、下一张 isNavHover: true,// 导航按钮是否默认隐藏,鼠标经过时再显示 href:true, effect: 'fade'// slide(滑动),fade(淡入),show(即显) }); }); $(function(){ /*新闻图片切换*/ $(".post-11 .focus88").sudyfocus({ p:11, zWidth:635, zHeight:390, title:{ isAutoWidth: false, active:true }, text: { active: false, isAutoHeight: false, href: false }, response: true, speed:700, pagination: true, navigation: true, isNavHover: true, href:true, effect: 'fade' }); }); $(function(){ $(".focus").sudyfocus({ p:2, zWidth:1920, zHeight:450, title:{ isAutoWidth: true, active:true }, text: { active: false, isAutoHeight: false, href: false }, response: true, speed:700, pagination: true, navigation: true, isNavHover: false, href:true, effect: 'fade' }); $('.post-11 .news_list').slick({ dots: true, slide:"li.news", infinite: false, slidesToShow: 1, slidesToScroll: 1, autoplay:true, responsive: [ { breakpoint: 980, settings: { dots: true, slidesToShow: 2, slidesToScroll: 2, slide:"li.news", infinite: false } }, { breakpoint: 600, settings: { dots: true, slidesToShow: 2, slide:"li.news", slidesToScroll: 2, infinite: false } }, { breakpoint: 480, settings: { dots: true, slidesToShow: 1, slide:"li.news", slidesToScroll: 1, infinite: false } }, { breakpoint: 280, settings: { dots: true, slidesToShow: 1, slide:"li.news", slidesToScroll: 1, infinite: false } } ] }); /*新闻图片切换*/ $(".post-11 .focus2").sudyfocus({ p:11, zWidth:358, zHeight:250, 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' }); /*新闻tab切换*/ $(".post-33").sudyTab({ handle:".tit .title", content:".con .boxm,.more_btn .more_text", trigger:"mouseenter", start:1, autoPlay:{ active:false } }); /*友情链接下拉*/ $(".botlinks").each(function(index, el){ $(el).find(".links-wrap").hover(function(){ $(this).addClass('wrap-open').children('.link-items').stop(true,true).slideDown(300); },function(){ $(this).removeClass('wrap-open').children('.link-items').stop(true,true).slideUp(100); }); }); //slick左右轮播 $('.post-42 .news_li').slick({ dots: false, //指示点 infinite: true, //循环播放 autoplay: true, //自动播放 autoplaySpeed: 3000, //自动播放间隔 arrows: true, //左右箭头 useCSS: true, //使用 CSS3 过度 speed: 600, //滑动时间 slide: 'li', //滑动元素查询 slidesToShow: 4, //幻灯片每屏显示个数 slidesToScroll: 1, //幻灯片每次滑动个数 responsive: [ //断点触发设置 { breakpoint: 1200, //分辨率之下(不包含设置分辨率本身) settings: { //参数设置 slide: 'li', //滑动元素查询 slidesToShow: 6, //幻灯片每屏显示个数 slidesToScroll: 1, //幻灯片每次滑动个数 infinite: true //循环播放 } }, { breakpoint: 960, settings: { slide: 'li', slidesToShow: 5, slidesToScroll: 1, infinite: true } }, { breakpoint: 768, settings: { slide: 'li', slidesToShow: 4, slidesToScroll: 1, infinite: true } }, { breakpoint: 480, settings: { slide: 'li', slidesToShow: 3, slidesToScroll: 1, infinite: true } }, { breakpoint: 320, settings: { slide: 'li', slidesToShow: 2, slidesToScroll: 1, infinite: true } } ] }); }); $(".post-41").sudyTab({ handle:".tit .title", content:".more_btn a,.con .boxm", trigger:"mouseenter", start:1, autoPlay:{ active:true, interval:6000, pauseHover:true } }); $(".post-412").sudyTab({ handle:".tit_1 .title_1", content:".more_btn_1 a,.con_1 .boxm_1", trigger:"mouseenter", start:1, autoPlay:{ active:true, interval:6000, pauseHover:true } }); $(function() { $.each($('.footer3 dl'), function(index, val) { var h = $(val).find('dd').height(); h = h*(-1); $(val).find('dd').css('top', h+'px'); }); $('.footer3 dl dt').click(function(event) { var _this = $(this); if($(_this).siblings('dd').css('display')=="none"){ $(_this).parents('dl').siblings('dl').find('dd').fadeOut(200); $(_this).siblings('dd').fadeIn(300); $(_this).parents('dl').siblings('dl').find('dt span').removeClass('rotate'); $(_this).find('span').addClass('rotate'); }else{ $(_this).siblings('dd').fadeOut(300); $(_this).find('span').removeClass('rotate'); } }); $('.footer3 dl').click(function(event) { var e = event || window.event; e.stopPropagation(); }); $(document).click(function(event) { $('.footer3 dl dd').fadeOut(300); $('.footer3 dl dt span').removeClass('rotate'); }); }); //slick左右轮播 $('.post-42 .news_li').slick({ dots: false, //指示点 infinite: true, //循环播放 autoplay: true, //自动播放 autoplaySpeed: 3000, //自动播放间隔 arrows: true, //左右箭头 useCSS: true, //使用 CSS3 过度 speed: 600, //滑动时间 slide: 'li', //滑动元素查询 slidesToShow: 4, //幻灯片每屏显示个数 slidesToScroll: 1, //幻灯片每次滑动个数 responsive: [ //断点触发设置 { breakpoint: 1200, //分辨率之下(不包含设置分辨率本身) settings: { //参数设置 slide: 'li', //滑动元素查询 slidesToShow: 6, //幻灯片每屏显示个数 slidesToScroll: 1, //幻灯片每次滑动个数 infinite: true //循环播放 } }, { breakpoint: 960, settings: { slide: 'li', slidesToShow: 5, slidesToScroll: 1, infinite: true } }, { breakpoint: 768, settings: { slide: 'li', slidesToShow: 4, slidesToScroll: 1, infinite: true } }, { breakpoint: 480, settings: { slide: 'li', slidesToShow: 3, slidesToScroll: 1, infinite: true } }, { breakpoint: 320, settings: { slide: 'li', slidesToShow: 2, slidesToScroll: 1, infinite: true } } ] });