var ww=document.documentelement.clientwidth var hh=document.documentelement.clientheight $(".focus,.f426x240,.f426x240 img").css({"width":$("#right").outerwidth()+"px","height":$("#right").outerwidth()/1650*803+"px"}); $(document).ready(function(){ $(".rslides_tabs li,.rslides_tabs li a").css({"width":15/1920*ww+"px","height":15/1920*ww+"px"}) $(".rslides_tabs li").css({"margin":"0 "+10/1920*ww+"px"}) $(".rslides_tabs").css({"left":$("#left").outerwidth()-$(".rslides_tabs").outerwidth()/2+$("#right").outerwidth()/6+"px","margin-top":-64/1920*ww+"px"}) }); $("#top img").css({"width":32/1920*ww+"px","min-width":"24px"}) $("#top a").css({"margin":10/1240*hh+"px "+8/1240*hh+"px 0 "+8/1240*hh+"px"}) $("#logo img").css({"margin-top":34/1240*hh+"px","margin-bottom":36/1240*hh+"px"}) $(".all-goods").css({"font-size":20/1920*ww+"px","margin-top":40/1920*ww+"px","margin-bottom":80/1920*ww+"px"}) if(ww<1400){ $("#co").css({"transform":"scale(0.7)","left":-0.15*$("#co").outerwidth()+"px"}) $(".all-goods .item").css({"height":14*2.6+"px"}) $(".all-goods .product-wrap").css({"left":$("#left").outerwidth()/2+28+"px"}) $(".all-goods .product-wrap ul").css({"left":$("#left").outerwidth()-($("#left").outerwidth()/2+28)+"px","margin-top":"14px"}) $("#news #n0.news h2").css({"font-size":"14px","line-height":"23px"}) $("#news #n0.news .text").css({"line-height":"22px"}) } else{ $("#co").css({"transform":"scale("+ww/1920+")","left":-(1-ww/1920)/2*$("#co").outerwidth()+"px"}) $(".all-goods h3").css({"font-size":20/1920*ww+"px","margin-bottom":11/1920*ww+"px"}) $(".all-goods .item").css({"height":20/1920*ww*2.6+"px"}) $(".all-goods .product-wrap").css({"font-size":18/1920*ww+"px","left":$("#left").outerwidth()/2+20/1920*ww*2+"px"}) $(".all-goods .product-wrap ul").css({"left":$("#left").outerwidth()-($("#left").outerwidth()/2+20/1920*ww*2)+"px","font-size":18/1920*ww+"px"}) } $("#nav img,#nav a p").css({"width":78/1920*ww+"px","height":78/1920*ww+"px"}) if(ww<1200){ $("#nav,.nav_xi").addclass("s") } else{ $("#nav img,#nav a p").css({"width":68/1920*ww+"px","height":68/1920*ww+"px"}) $(".nav_xi").addclass("b").css({"width":994/1920*ww+"px","right":($("#right").outerwidth()/1650*803-10)/4-10+"px"}) $("#nav").addclass("b").css({"height":$("#right").outerwidth()/1650*803+"px"}) $("#nav.b,#nav.b li,#nav.b li>a,#nav.b li .bg").css({"height":($("#right").outerwidth()/1650*803-10)/4-10+"px","width":($("#right").outerwidth()/1650*803-10)/4-10+"px"}) $("#nav.b h2").css({"font-size":24/1920*ww+"px"}) $("#nav.b h3").css({"font-size":14/1920*ww+"px"}) } $(".all-goods h3:eq("+def+")").addclass("on") $(function(){ $('.all-goods .item').hover(function(){ $(".all-goods h3:eq("+def+")").removeclass("on") $(this).find("h3").addclass('on') $(this).find('.product-wrap').show(); },function(){ $(this).find("h3").removeclass('on') $(".all-goods h3:eq("+def+")").addclass("on") $(this).find('.product-wrap').hide(); }); $('#nav li').hover(function(){ $(this).find('.nav_xi').show(); },function(){ $(this).find('.nav_xi').hide(); }) }); $(".nav_xi div").css({"padding":33/1920*ww+"px "+65/1920*ww+"px"}) $(".nav_xi.b").css({"font-size":24/1920*ww+"px"}) $(".nav_xi.b h4").css({"font-size":36/1920*ww+"px"}) $(".nav_xi.s").css({"width":$("#right").outerwidth()-40+"px","top":$("#right").outerwidth()/1650*833-$(".nav_xi.s").outerheight()-40+"px"}) $("#nav.s>li>a").css({"width":$("#nav.s>li").outerwidth()+"px"}) $("#nav.s .bg").css({"height":$("#nav li").outerheight()+"px","width":$("#nav li").outerwidth()+"px"}) $(".n1 .nav_xi.b").css({"top":$("#right").outerwidth()/1650*803/4+"px"}) $(".n2 .nav_xi.b").css({"top":$("#right").outerwidth()/1650*803/2+"px"}) $(".n3 .nav_xi.b").css({"top":$("#right").outerwidth()/1650*803/4*3-40+"px"}) $("#n1 .gao .fw h2 span").hover( function(){ $("#n1 .gao .fw ul").css({"display":"none"}) $("#n1 .gao .fw ul:eq("+$(this).index()+")").css({"display":"block"}) } ) $("#n2 .gao .fw h2 span").hover( function(){ $("#n2 .gao .fw ul").css({"display":"none"}) $("#n2 .gao .fw ul:eq("+$(this).index()+")").css({"display":"block"}) } ) $("#news .news .gao").css({"width":$("#news .news").outerwidth()+"px"}) $(".news").hover(function(){ $(this).addclass('on') $(this).find(".gao").stop().animate({margintop:-36/1920*ww+"px",height:207+36/1920*ww+"px"}) },function(){ $(this).removeclass('on') $(this).find(".gao").stop().animate({margintop:0,height:207+"px"}) }) $("#nav li").hover( function(){ $(this).find(".bg").stop().animate({opacity:"0.8"}) },function(){ $(this).find(".bg").stop().animate({opacity:"0.94"}) } ) $('#nav li>a').mouseenter(function () { $(this).find('i').animate({top:"-25px",opacity:"0"},300,function () { $(this).css({top:'25px'}); $(this).animate({top:'12px',opacity:'1'},600) }) })