jquery(function(){ var $banner = jquery('.banner'), $bannerpic = $banner.find(".pic"), $bannerimg = $banner.find(".pimg"), $bannersider=jquery(".bannersider"), $bannerli = $bannersider.find("li"); function initbox() { if (w_width >= 861) { var bannerh=w_height - $mtoph; $banner.css({ height: bannerh }); $bannerli.css({ height: bannerh }); setimgmax($bannerpic, 1920,800, w_width, bannerh); } else { $banner.css({ height: "auto" }); $bannerli.css({ height: "auto" }); $bannerpic.attr("style", "").css({ position: "relative" }); }; }; initbox(); jquery(window).resize(function () { initbox(); }); if(!ismobile){ $bannersider.bxslider({ auto: true, pause:5000, mode:"fade", pager:true, controls:false, onsliderload:function(currentindex){ $bannerpic.eq(currentindex).addclass("imgin"); },onslideafter: function($slideelement, oldindex, newindex) { $bannerpic.removeclass("imgin").eq(newindex).addclass("imgin"); $('div.bannertext .t').hide().css({margintop:50}).stop(false,false).delay(150).eq(newindex).animate({margintop:0,opacity:"show"},500); $('div.bannertext .c').hide().css({margintop:50}).stop(false,false).delay(300).eq(newindex).animate({margintop:0,opacity:"show"},500); } }); }else{ $bannersider.bxslider({ auto: true, pager:true, controls:false }); }; jquery(".businessidemo li").mouseenter(function(){ jquery(this).find(".bluebg").stop(false,false).fadein(); jquery(this).find('.t').delay(150).stop(false,false).animate({'margintop':'-35px'},500); jquery(this).find('.c').delay(300).stop(false,false).animate({margintop:0,opacity:"show"},500); jquery(this).find('.more').delay(400).stop(false,false).animate({margintop:0,opacity:"show"},500); }).mouseleave(function(){ jquery(this).find(".bluebg").fadeout(); jquery(this).find('.t').animate({'margintop':0},300); jquery(this).find('.c').css({margintop:50,display:"none"}); jquery(this).find('.more').css({margintop:30,display:"none"}); }); if(!ismobile){ $('.aboutibox').parallax('50%',-.3); }; var owlcustomer = $(".customerdemo"); owlcustomer.owlcarousel({ items : 3, autoplay:false, mousedrag:false, slidespeed : 400, navigation:true, pagination : false, itemstablet : [860, 4], itemstabletsmall : [640, 3], itemsmobile : [480, 2] }); });