function zdfs() { var diag = new dialog(); diag.width = 500; diag.height = 350; diag.title = "预约装修"; diag.url = "/zdfs/"; diag.show(); } function opin() { var diag = new dialog(); diag.width = 500; diag.height = 330; diag.title = "在线报修"; diag.url = "/opinion/"; diag.show(); } function bmcg() { var diag = new dialog(); diag.width = 500; diag.height = 210; diag.title = "申请报价服务"; diag.url = "/bmcg/"; diag.show(); } function anlishow(){ $(".hoverprent").css({"background": "#fa4c06"}); $(".hoverprent a").css({"color": "#ffffff"}); } function anlihide(){ $(".hoverprent").css({"background": "#ffffff"}); $(".hoverprent a").css({"color":"#535353"}); } function aboutshow(){ $(".hoverprent1").css({"background": "#fa4c06"}); $(".hoverprent1 a").css({"color": "#ffffff"}); } function abouthide(){ $(".hoverprent1").css({"background": "#ffffff"}); $(".hoverprent1 a").css({"color":"#535353"}); } $(function(){ $(".hover,.hoverprent").mouseover(function () { $(".hoverprent").css({"background": "#fa4c06"}); $(".hoverprent a").css({"color": "#ffffff"}); }); $(".hover,.hoverprent").mouseout(function () { $(".hoverprent").css({"background": "#ffffff"}); $(".hoverprent a").css({"color":"#535353"}); }); $(".hover1,.hoverprent1").mouseover(function () { $(".hoverprent1").css({"background": "#fa4c06"}); $(".hoverprent1 a").css({"color": "#ffffff"}); }); $(".hover1,.hoverprent1").mouseout(function () { $(".hoverprent1").css({"background": "#ffffff"}); $(".hoverprent1 a").css({"color":"#535353"}); }); }) $(function () { // $('input, textarea').placeholder(); //城市选择js $('#switch_city').click(function (){ $('#city_select').toggle(300); }); //设计师js $(".index-sjs-top ul li").click(function(){ $(this).addclass("sjs-li-cur").siblings().removeclass("sjs-li-cur"); var index=$(this).index(); $(".index-sjs-bottom ul li").eq(index).addclass("sjs-show").siblings().removeclass('sjs-show'); }); //装修知识js $(".index-zxzs-top ul li").click(function(){ $(this).addclass("zxzs-li-cur").siblings().removeclass("zxzs-li-cur"); var index=$(this).index(); $(".index-zxzs-bottom ul li").eq(index).addclass("show").siblings().removeclass('show'); }); //友情链接js $(".index-yqlj-top ul li").hover(function(){ $(this).addclass("li-cur").siblings().removeclass("li-cur"); var index=$(this).index(); $(".index-yqlj-bottom ul li").eq(index).addclass("show").siblings().removeclass('show'); }); //右侧是悬浮js $(".index-xf-li3 a").mouseover(function(){ $(".xftel").stop().show(300); }); $(".index-xf-li3 a").mouseout(function(){ $(".xftel").stop().hide(300); }); var h= document.documentelement.clientheight || document.body.clientheight; var stop=parseint(h/2-390/2); $(".index-xf").css({"top":stop}); //设计师js $(".sjs-box").mouseover(function(){ $(this).addclass("sjs-box-img"); }); $(".sjs-box").mouseout(function(){ $(this).removeclass("sjs-box-img"); }); //家装案例js var w= document.documentelement.clientwidth || document.body.clientwidth ; var picwidth = w; var boxwidth = picwidth/4-1; var imgbz = 4 / 3; var imgyheight = $(".pic-box-img").height(); var imgywidth = $(".pic-box-img").width(); var picboxheight = (boxwidth*imgyheight)/imgywidth-30; $(".pic").css({"width":picwidth+"px"}); $(".pic-box").css({"width":boxwidth+"px"}); $(".pic-box-img").css({"width":boxwidth+"px"}); $(".pic-box").css({"height":picboxheight+"px"}); $(".pic-zz").css({"width":boxwidth+"px"}); $(".pic-zz").css({"height":picboxheight+"px"}); });