//点击展开和关闭的样式 function Togle(obj,id){ var mObj = $(obj); var sObj = $("#"+id); if(sObj.is(":hidden")){ sObj.slideDown("slow"); mObj.removeClass("filtercategoryclose").addClass("filtercategory"); }else{ sObj.slideUp("slow"); mObj.removeClass("filtercategory").addClass("filtercategoryclose"); } } //点击后X后,关闭层 $(function(){ $(".closeAds").click(function(){ $(".hotelExpress").hide(); }); }); //页面上对应的层 $(function(){ //table交互效果 by shw var overTr=$("#hoverTable tr"); var thisTr=$("#hoverTable tr.hotelInfo"); var theOne=$("#hoverTable tr.hotelInfo:first"); thisTr.hide(); theOne.show(); overTr.mouseover(function(){ var thisClass=$(this).attr("class"); if(thisClass!="hotelInfo"){ thisTr.hide(); var showTr=$(this); showTr.next("tr").show(); } }); });