var width1 = $('.indexthree').width(); $('.indexthree').height(width1*750/1920); window.onresize = function(){ // console.log('1111'); width1 = $('.indexthree').width(); $('.indexthree').height(width1*750/1920); } $(".cengdo li").eq(1).css("border-left","none"); $(".cengdo li").mouseenter(function(){ $(".cengdo .ceng").css("left",$(this).index()*33.3+'%'); if($(window).width()>767){ if($(this).index()==1){ $(".cengdo li").eq(1).css("border-left-color","transparent"); $(".cengdo li").eq(2).css("border-left-color","transparent"); } if($(this).index()==2){ $(".cengdo li").eq(1).css("border-left","1px solid #dfdfdf"); $(".cengdo li").eq(2).css("border-left-color","transparent"); } if($(this).index()==0){ $(".cengdo li").eq(1).css("border-left-color","transparent"); $(".cengdo li").eq(2).css("border-left","1px solid #dfdfdf"); } } }) $(".indexfour ul li").mouseenter(function(){ $(".indexfour ul .ceng").css("left",$(this).index()*33.33+'%'); }) $("#owl_two .item .sanban .sbx").eq(0).addclass("on"); $("#owl_two .item .sanban .sbx").mouseenter(function(){ $("#owl_two .item .sanban .sbx").removeclass("on"); $(this).addclass("on"); $("#owl_two .item .sanban .ceng").css("left",$(this).index()*50+'%'); }) if($(window).width()>'767'){ // $(".indthr1, .indthr2").on("mouseenter",function(){ // $(this).parent().siblings().css("width","60%"); // $(this).parent().css("width","40%"); // $(".indthr1, .indthr2").css("height","36%"); // $(this).css("height","64%"); // }) // $(".indthr1, .indthr2").on("mouseleave",function(){ // $(this).parent().css("width","33.3%"); // $(this).parent().siblings().css("width","66.7%"); // $(".indthr1, .indthr2").css("height","50%"); // }) // $(".indthr3, .indthr4").on("mouseenter",function(){ // $(this).parent().siblings().css("width","25%"); // $(this).parent().css("width","75%"); // $(".indthr3, .indthr4").css("width","33%"); // $(this).css("width","67%"); // }) // $(".indthr3, .indthr4").on("mouseleave",function(){ // $(this).parent().css("width","66.7%"); // $(this).parent().siblings().css("width","33.3%"); // $(".indthr3, .indthr4").css("width","50%"); // }) // $(".indthr3").on("mouseenter",function(){ // $(".indthr4").css("width","30%"); // $(this).css("width","70%"); // }) // $(".indthr3").on("mouseleave",function(){ // $(this).css("width","50%"); // $(".indthr4").css("width","50%"); // }) // $(".indthr4").on("mouseenter",function(){ // $(".indthr3").css("width","30%"); // $(this).css("width","70%"); // }) // $(".indthr4").on("mouseleave",function(){ // $(this).css("width","50%"); // $(".indthr3").css("width","50%"); // }) } var lefty = $(".indexfive .qiehuan .ceng").css('left'); $(".indexfive .qiehuan li").eq(0).addclass("active"); $(".indexfive .fnr .fnrli").eq(0).css("display","block"); $(".indexfive .qiehuan li").click(function(){ $(".indexfive .qiehuan li").removeclass("active"); $(this).addclass("active"); $(".indexfive .fnr .fnrli").css("display","none"); $(".indexfive .fnr .fnrli").eq($(this).index()).css("display","block"); $(".indexfive .qiehuan .ceng").css("left",$(this).index()*196+5) lefty = $(this).index()*196+5; }) $(".indexfive .qiehuan li").mouseenter(function(){ $(".indexfive .qiehuan .ceng").css("left",$(this).index()*196+5); }) $(".indexfive .qiehuan li").mouseleave(function(){ $(".indexfive .qiehuan .ceng").css("left",lefty); }) $(".lfoter1 .zhuti .shaoma .you").mouseenter(function(){ $(".lfoter1 .zhuti .shaoma .ewm").stop().fadein(); }) $(".lfoter1 .zhuti .shaoma .you").mouseleave(function(){ $(".lfoter1 .zhuti .shaoma .ewm").stop().fadeout(); }) //cpjsz.html $(".cpjsztwo .biaoti .you .tubao img").eq(0).css("display","block"); $(".cpjsztwo .biaoti .you .ziyi .hang .hou").mouseenter(function(){ $(this).siblings().find(".qian").css("right","0"); }) $(".cpjsztwo .biaoti .you .ziyi .hang").mouseleave(function(){ $(this).find(".qian").css("right","-282px"); }) $(".cpjsztwo .biaoti .you .ziyi .hang").mouseenter(function(){ $(".cpjsztwo .biaoti .you .tubao img").css("display","none"); $(".cpjsztwo .biaoti .you .tubao img").eq($(this).index()).css("display","block"); }) //fazhan.html $(".fazbox .faztwo .zuo .qieh li").eq(2).addclass("active"); $(".fazbox .faztwo .you .neirongz").eq(2).css("display","block"); $(".fazone .fazhan li").eq(2).addclass("active"); $(".fazone .fazhan li").click(function(){ $(".fazone .fazhan li").removeclass("active"); $(this).addclass("active"); $(".fazbox .faztwo .zuo .qieh li").removeclass("active"); $(".fazbox .faztwo .zuo .qieh li").eq($(this).index()).addclass("active"); $(".fazbox .faztwo .you .neirongz").css("display","none"); $(".fazbox .faztwo .you .neirongz").eq($(this).index()).css("display","block"); }) $(".neirongz1 .neirf").eq(0).css("display","block"); $(".fens1 .fen").click(function(){ $(".fens1 .fen").removeclass("on"); $(this).addclass("on"); $(".neirongz1 .neirf").css("display","none"); $(".neirongz1 .neirf").eq($(this).index()).css("display","block"); }) $(".neirongz2 .neirf").eq(0).css("display","block"); $(".fens2 .fen").click(function(){ $(".fens2 .fen").removeclass("on"); $(this).addclass("on"); $(".neirongz2 .neirf").css("display","none"); $(".neirongz2 .neirf").eq($(this).index()).css("display","block"); }) $(".neirongz3 .neirf").eq(0).css("display","block"); $(".fens3 .fen").click(function(){ $(".fens3 .fen").removeclass("on"); $(this).addclass("on"); $(".neirongz3 .neirf").css("display","none"); $(".neirongz3 .neirf").eq($(this).index()).css("display","block"); }) //about.html $(".kqbu").click(function(){ $(".zswz").toggleclass("autoh"); if($(this).hasclass("dian")){ $(this).removeclass("dian"); $(this).html("+"); }else{ $(this).addclass("dian"); $(this).html("-"); } }) $(".abouthree .zi .lianjs a").eq(0).addclass("active"); $(".abouthree .zi .lianjs a").mouseenter(function(){ $(".abouthree .zi .lianjs a").removeclass("active"); $(this).addclass("active"); }) $(".aboutsix .zi .lianjs a").eq(0).addclass("active"); $(".aboutsix .zi .lianjs a").mouseenter(function(){ $(".aboutsix .zi .lianjs a").removeclass("active"); $(this).addclass("active"); }) //yghd.html var kuan = $(".yghdtwo .xiamiande .zhuer li").innerwidth(); var gao = $(".yghdtwo .xiamiande .zhuer li").innerheight(); var height; var margintop = parseint($(".yghdtwo .xiamiande .zhuer li").css("margin-top")); var marginbottom; var cushu; var yushu; $(".yghdtwo .xiamiande .zhuer .fukuang").css("width",kuan).css("height",gao).css("top",margintop).css("left",0); $(".yghdtwo .xiamiande .zhuer li").mouseenter(function(){ kuan = $(this).innerwidth(); gao = $(this).innerheight(); height = $(this).outerheight(true); margintop = parseint($(this).css("margin-top")); marginbottom = $(this).css("margin-bottom"); cushu = parseint($(this).index() / 3); yushu = parseint($(this).index() % 3); $(".yghdtwo .xiamiande .zhuer .fukuang").css("width",kuan).css("height",gao).css("top",(height * cushu)+margintop).css("left",kuan*yushu); }) //shzr.html var shzrkuan = $(".shzrfour .nr li").innerwidth(); var shzrgao = $(".shzrfour .nr li").innerheight(); var shzrheight; var shzrmargintop = parseint($(".shzrfour .nr li").css("margin-top")); var shzrmarginbottom; var shzrcushu; var shzryushu; $(".shzrfour .nr .fukuang").css("width",shzrkuan).css("height",shzrgao).css("top",shzrmargintop).css("left",0); $(".shzrfour .nr li").mouseenter(function(){ shzrkuan = $(this).innerwidth(); shzrgao = $(this).innerheight(); shzrheight = $(this).outerheight(true); shzrmargintop = parseint($(this).css("margin-top")); shzrmarginbottom = $(this).css("margin-bottom"); shzrcushu = parseint($(this).index() / 3); shzryushu = parseint($(this).index() % 3); $(".shzrfour .nr .fukuang").css("width",shzrkuan).css("height",shzrgao).css("top",(shzrheight * shzrcushu)+shzrmargintop).css("left",shzrkuan*shzryushu); })