$(function(){ var h=$(window).height() var s=h if(h) { $(".slidewrap").css("height",h-81) $(".wide-bannercontainer").css("height",h-81) $(".sub").css("height",h-241) $(".arrow").css("height",h-241) } }) $(window).resize(function(){ var resolutionlist="320,400,640,800,1024,1280,1400,1440,1600,1680,1920,2048,2560,3200,3840,"; var nowwidth=window.screen.height; var h=$(window).height() if(resolutionlist.indexof(nowwidth + ",")==-1 ){ if(h) { $(".wide-banner").css("height",h-81); $(".slidewrap").css("height",h-81); $(".wide-bannercontainer").css("height",h-81); $(".home").css("height",h-81) $(".body-wrapper").css("height",h-81) $(".box-borderr").css("height",h-81) $(".light-wrapper").css("height",h-81) $(".container").css("height",h-81) $(".slotholder").css("height",h-81) $(".service-main").css("height",h-81); $(".sub").css("height",h-241); $(".client").css("height",h-81); $(".wis-content").css("height",h-81); $(".work2").css("height",h); $(".arrow").css("height",h-241) $(".work2-list ul li a img").css("height",h/2) } } else{ if(h) { $(".wide-banner").css("height",h); $(".slidewrap").css("height",h); $(".wide-bannercontainer").css("height",h); $(".home").css("height",h-81) $(".body-wrapper").css("height",h-81) $(".box-borderr").css("height",h-81) $(".light-wrapper").css("height",h-81) $(".container").css("height",h-81) $(".slotholder").css("height",h-81) $(".service-main").css("height",h-81); $(".sub").css("height",h-241); $(".client").css("height",h-81); $(".wis-content").css("height",h-81); $(".work2").css("height",h); $(".arrow").css("height",h-241) $(".work2-list ul li a img").css("height",h/2) } } }); //index //服务 $(function(){ var vh=$(window).width() var s=vh if(vh) { $(".work2-list ul li a img").css("width",vh/4) } }) $(window).resize(function(){ var resolutionlist="320,400,640,800,1024,1280,1400,1440,1600,1680,1920,2048,2560,3200,3840,"; var nowwidth=window.screen.height; var vh=$(window).width() if(resolutionlist.indexof(nowwidth + ",")==-1 ){ if(vh) { $(".work2-list ul li a img").css("width",vh/4) } } else{ if(vh) { $(".work2-list ul li a img").css("width",vh/4) } } }); $(function(){ var vh=$(window).width() var s=vh if(vh) { $(".case-listmain").css("width",vh-160) } }) $(window).resize(function(){ var resolutionlist="320,400,640,800,1024,1280,1400,1440,1600,1680,1920,2048,2560,3200,3840,"; var nowwidth=window.screen.height; var vh=$(window).width() if(resolutionlist.indexof(nowwidth + ",")==-1 ){ if(vh) { $(".case-listmain").css("width",vh-160) } } else{ if(vh) { $(".case-listmain").css("width",vh-160) } } }); $(function(){ var vh=$(window).width() var ssss=vh-160 if(ssss) { $(".case-listmain ul li").css("width",ssss/4-9) } }) $(window).resize(function(){ var resolutionlist="320,400,640,800,1024,1280,1400,1440,1600,1680,1920,2048,2560,3200,3840,"; var nowwidth=window.screen.hesight; var vh=$(window).width() var ssss=vh-160 if(resolutionlist.indexof(nowwidth + ",")==-1 ){ if(ssss) { $(".case-listmain ul li").css("width",ssss/4-9) } } else{ if(ssss) { $(".case-listmain ul li").css("width",ssss/4-9) } } }); $(function(){ var vh=$(window).width() var ssss=vh-160 if(ssss) { $(".on-bj img").css("width",ssss/4-9) } }) $(window).resize(function(){ var resolutionlist="320,400,640,800,1024,1280,1400,1440,1600,1680,1920,2048,2560,3200,3840,"; var nowwidth=window.screen.hesight; var vh=$(window).width() var ssss=vh-160 if(resolutionlist.indexof(nowwidth + ",")==-1 ){ if(ssss) { $(".on-bj img").css("width",ssss/4-9) } } else{ if(ssss) { $(".on-bj img").css("width",ssss/4-9) } } }); $(function(){ $(".case-listmain ul li").hover(function(){ $(this).children(".on-bj").show(); },function(){ $(this).children(".on-bj").hide(); }) }) $(function(){ $(".ico06").hover(function(){ $(".ewm").show(); },function(){ $(".ewm").hide(); }) }) $(document).ready(function(){ $(".serbox").hover(function(){ $(this).children().stop(false,true); $(this).children(".serboxon").fadein("slow"); $(this).children(".pic1").animate({right: -110},400); $(this).children(".pic2").animate({left: 55},400); $(this).children(".txt1").animate({left: -240},400); $(this).children(".txt2").animate({right: 0},400); },function(){ $(this).children().stop(false,true); $(this).children(".serboxon").fadeout("slow"); $(this).children(".pic1").animate({right:55},400); $(this).children(".pic2").animate({left: -110},400); $(this).children(".txt1").animate({left: 0},400); $(this).children(".txt2").animate({right: -240},400); }); }); function serfocus(i){ $(".servicespop").slidedown("normal"); changeflash(i); } function closeserpop(){ $(".servicespop").slideup("fast"); } var currentindex=1; function changeflash(i){ currentindex=i; for (j=1;j<=6;j++){ if(j==i){ $("#flash"+j).fadein("normal"); $("#flash"+j).css("display","block"); $("#f"+j).removeclass(); $("#f"+j).addclass("dq"); }else{ $("#flash"+j).css("display","none"); $("#f"+j).removeclass(); $("#f"+j).addclass("no"); } } } (function($){ $(document).ready(function(){ $.fn.center=function(){ return this.each(function(){ var $this=$(this), parent=$this.parent(), toppos, topmargin, leftmargin, resizetimeout; if(parent.is("body:not(.root-height-set)")){ $("html,body").css("height","100%").addclass("root-height-set"); } if($this.css("position")==="absolute" || $this.css("position")==="fixed"){ toppos="50%"; topmargin="-"+math.round($this.outerheight()/2)+"px"; leftmargin="-"+math.round($this.outerwidth()/2)+"px"; $this.css({"left":"50%","margin-left":leftmargin}); }else{ toppos=math.floor((parent.height()-$this.outerheight())/2); topmargin="auto"; $this.css({"position":"relative","margin-left":"auto","margin-right":"auto"}); } $this.css({"top":toppos,"margin-top":topmargin}); $(window).resize(function(){ if(resizetimeout){ cleartimeout(resizetimeout); } resizetimeout=settimeout(function(){ if($this.css("position")==="absolute"){ topmargin="-"+math.round($this.outerheight()/2)+"px"; leftmargin="-"+math.round($this.outerwidth()/2)+"px"; $this.css({"margin-left":leftmargin,"margin-top":topmargin}); }else{ toppos=math.floor((parent.height()-$this.outerheight())/2); $this.css("top",toppos); } },150); }); }); } $(".outer,.innerr").center(); }); })(jquery); $(function(){ $(".wb1").hover(function(){ $(this).children(".wb1-ico").animate({ left:"-55px" },200); },function(){ $(this).children(".wb1-ico").animate({ left:"0px" },200); }); }) $(function(){ $(".wb2").hover(function(){ $(this).children(".wb2-ico").animate({ left:"-55px" },100); $(".ewm").show(); },function(){ $(this).children(".wb2-ico").animate({ left:"0px" },100); $(".ewm").hide(); }); }) $(function(){ $(".project").hover(function(){ $(this).children(".work-title").animate({ bottom:"0px" },200); },function(){ $(this).children(".work-title").animate({ bottom:"-20%" },200); }); }) $(function(){ $(".work2-list ul li").hover(function(){ $(this).children(".work-title").show(); $(this).children(".workbj").hide(); },function(){ $(this).children(".work-title").hide(); $(this).children(".workbj").show(); }); })