jquery(function(){ function initbox() { w_width = jquery(window).width(); w_height = jquery(window).height(); var mtop=$(".mtop").outerheight(); var paddwidth=parseint($(".container").css('padding-left'))+parseint($(".container").css('padding-right')); var mouse=$(".mousedown").outerheight(); $('.banner').css('height',w_height-mtop-mouse); $('.banner >li,.banner >li figure').css('height',w_height-mtop-mouse); setimgmax($('.banner >li figure .bimg'), 1740, 789, w_width-paddwidth, w_height-mtop-mouse); if(!ismobile){ }else{ $('.bannlist >li figure .bimg').width(w_width); } }; initbox(); jquery(window).resize(function () { initbox(); }); jquery(function(){ var bannersider=jquery(".banner-box"); bannersider.flexslider({ animation: "fade", pauseonhover: false, animationloop: true, slideshow: true, slideshowspeed: 5000, animationspeed: 0, directionnav:false, controlnav:true, }); }); jquery(function(){ var bannersider=jquery(".news"); bannersider.flexslider({ animation: "fade", pauseonhover: true, animationloop: true, slideshow: true, slideshowspeed: 4000, animationspeed: 0, directionnav:false, controlnav:true }); }); $('.investbox').slick({ infinite: true, autoplay:false, speed:1000, dots: false, arrows:true, slidestoshow: 3, slidestoscroll: 3, responsive: [ { breakpoint: 1200, settings: { dots: false, speed:800, arrows:true, slidestoshow:3, slidestoscroll: 3, infinite: true, } }, { breakpoint: 860, settings: { dots: false, speed:800, arrows:true, slidestoshow: 2, slidestoscroll: 2, infinite: true, } }, { breakpoint: 400, settings: { dots: false, speed:800, arrows:true, slidestoshow: 1, slidestoscroll: 1, infinite: true, } } ] }); jquery(function(){ function loadpage(url){ $('.popnewtext').html('
加载中...
'); $.ajax({ url: url, success:function(data){ $('.popnewtext').html(data); $('.popclose,.popbgs').on('click',function(){ $('.popnews').removeclass('show'); }); }, error:function(jqxhr){ alert( 'error!\ncode: '+jqxhr.status ); } }); } $('.newlist li a,.informated li a').on('click',function(){ $('.popnews').addclass('show'); loadpage($(this).data('url')); }); $('.popclose,.popbgs').on('click',function(){ $('.popnews').removeclass('show'); }); }); });