$(document).ready(function(){ //-----------------首页js效果--------------------- //头部图标鼠标经过效果 $(".top div.rt a").mouseover(function(){ $(this).find('span.ico').css( 'background-position-y',' -15px'); }).mouseleave(function(){ $(this).find('span.ico').css( 'background-position-y',' 0px'); }); $(".top div.rt a.top_phone").mouseenter(function(){ $(this).find('.top_wx').slidedown() }).mouseleave(function(){ $(this).find('.top_wx').stop(true,true).slideup() }); //绿色头部搜索框 $(".search_cont").mouseenter(function(){ $(this).find(".search_cont_list").slidedown(); }).mouseleave(function(){ $(this).find(".search_cont_list").stop(true,true).slideup(); }); $(".search_cont .search_cont_list").mouseenter(function(){ $(this).stop(true,true).show(); }).mouseleave(function(){ $(this).stop(true,true).slideup(); }); //头部保证 $(".top_ensure a").mouseover(function(){ $(this).find('dt').css('background','#339933'); }).mouseleave(function(){ $(this).find('dt').css('background','#666'); }); //鼠标经过预约按钮透明层显示 $(".opacity_img").parent().mouseover(function(){ $(this).find('.opacity_yuyue').stop(true, true).fadein('fast'); }).mouseleave(function(){ $(this).find('.opacity_yuyue').stop(true, true).fadeout('fast'); }); }); //套系选项卡 function settab(name,cursel,n){ for(i=1;i<=n;i++){ var menu=document.getelementbyid(name+i); var con=document.getelementbyid("con_"+name+"_"+i); menu.classname=i==cursel?"hover":""; con.style.display=i==cursel?"block":"none"; } }