//判断浏览器 function isIE() { if(window.navigator.userAgent.toString().toLowerCase().indexOf("msie") >=1) return true; else return false; } if(!isIE()) { HTMLElement.prototype.__defineGetter__("innerText", function(){ var anyString = ""; var childS = this.childNodes; for(var i=0;i < childS.length;i++){ if(childS[i].nodeType==1) anyString+=childS[i].tagName=="BR"?'\n':childS[i].innerText; else if(childS[i].nodeType==3) anyString += childS[i].nodeValue; } return anyString; } ); HTMLElement.prototype.__defineSetter__("innerText", function(sText){ this.textContent=sText; } ); } //片区楼盘切换效果 function Show_TabADSMenu0(tabadid_num,tabadnum) { for(var i=0;i < 3;i++) { if(i == tabadnum) { document.getElementById("tabadmenu0_4"+i).style.background="url(http://www.jsbchouse.com:80/jsbchouse/images/index/lpbg_b.gif)"; var str = document.getElementById("tabadmenu0_4"+i).innerText; document.getElementById("tabadmenu0_4"+i).innerHTML = ""+str+""; if(document.getElementById("tabadcontent0_4"+i) != null) document.getElementById("tabadcontent0_4"+i).style.display="block"; } else { document.getElementById("tabadmenu0_4"+i).style.background="url(http://www.jsbchouse.com:80/jsbchouse/images/index/lpbg_a.gif)"; var str = document.getElementById("tabadmenu0_4"+i).innerText; document.getElementById("tabadmenu0_4"+i).innerHTML = str; if(document.getElementById("tabadcontent0_4"+i) != null) document.getElementById("tabadcontent0_4"+i).style.display="none"; } } } //幻灯片切换效果 function changeLi(obj,i,count) { if(obj != null && i != null && count != null) { var object = document.getElementsByName("hd0");// for(var j=0;j < count;j++) { if(j == i) { document.getElementById("hd0"+j).style.background="url(http://www.jsbchouse.com:80/jsbchouse/images/index/news_hd1.gif)"; document.getElementById("hd0"+j).style.color="#fff"; if(object != null && object[j] != null) object[j].style.display = ""; } else { document.getElementById("hd0"+j).style.background="url(http://www.jsbchouse.com:80/jsbchouse/images/index/news_hd2.gif)"; document.getElementById("hd0"+j).style.color="#000"; if(object != null && object[j] != null) object[j].style.display = "none"; } } } } //新闻切换效果 function changeNewsli(obj,i,count) { if(obj != null && i != null && count != null) { for(var j=0;j < count;j++) { if(j == i) { document.getElementById("new0"+j).style.background="url(http://www.jsbchouse.com:80/jsbchouse/images/index/news_bgt1.gif)"; document.getElementById("new0"+j).style.color="#fff"; if(document.getElementById("new0"+j+"m") != null) document.getElementById("new0"+j+"m").style.display = ""; } else { document.getElementById("new0"+j).style.background="url(http://www.jsbchouse.com:80/jsbchouse/images/index/news_bgt2.gif)"; document.getElementById("new0"+j).style.color="#000"; if(document.getElementById("new0"+j+"m") != null) document.getElementById("new0"+j+"m").style.display = "none"; } } } } //排行榜浮动信息 function mouseover(itemName) { document.getElementById(itemName).style.display='block'; } function mouseout(itemName) { document.getElementById(itemName).style.display='none'; } //二手房搜索 function searchSellByParam() { var url = "http://www.jsbchouse.com:80/jsbchouse/nanjing/sell/selllist/index.jsp?hiddRegion="+document.getElementById("sellSerchRegion").value+"&hiddProType="+document.getElementById("searchProType").value; window.open(url,"searchSell","height=800, width=1024,toolbar=yes,menubar=yes, scrollbars=yes, resizable=yes,location=yes, status=yes"); } //根据名称搜索楼盘 function searchHosByName() { var url = "http://www.jsbchouse.com:80/jsbchouse/nanjing/hos/hoslist/index.jsp?hosname="+encodeURIComponent(document.getElementById("louPanSOSO").value); window.open(url,"loupan","height=800, width=1024,toolbar=yes,menubar=yes, scrollbars=yes, resizable=yes,location=yes, status=yes"); } //根据名称搜索视频 function searchVideoByName() { var url = "http://www.jsbchouse.com:80/jsbchouse/VideoList?VIDEOTYPE=0&SERCHSTRING="+document.getElementById("videoSOSO").value; window.open(url,"video","height=800, width=1024,toolbar=yes,menubar=yes, scrollbars=yes, resizable=yes,location=yes, status=yes"); }