document.getElementById("weather").innerHTML="
";
var search_txt="输入您想要找的信息,比如:二手电脑";
document.getElementById("searchinput").onclick=function() {
if (this.value==search_txt) { this.value=''; this.className='inputbox color00'; }
}
document.getElementById("searchinput").onblur=function() {
if (this.value=='') { this.value=search_txt; this.className='inputbox colorcc'; }
}
document.getElementById("searchinput").value=search_txt;
/*------------头部登录-------------*/
function login_showhide() {
if (document.getElementById('login2').style.display =="") {
document.getElementById('login2').style.display = "none";
document.getElementById('login1').style.display = "";
} else {
document.getElementById('login2').style.display = "";
document.getElementById("login_uname").focus();
document.getElementById('login1').style.display = "none";
}
return false;
}
/*-----------首页即时数字----------*/
var url="css/data/index_num.xml";
var xmldoc;
function loadXML() {
if(document.implementation&&document.implementation.createDocument) {
xmldoc = document.implementation.createDocument("", "", null);
xmldoc.load(url);
xmldoc.onload =show_chatcontent;
}
else if(window.ActiveXObject) {
xmldoc = new ActiveXObject("Microsoft.XMLDOM");
xmldoc.onreadystatechange = function() {
if(xmldoc.readyState == 4) show_chatcontent();
}
xmldoc.load(url);
}
delete(xmldoc);window.setTimeout("loadXML()",2000);
}
function show_chatcontent() {
var nums = xmldoc.getElementsByTagName("nums");
var s='';
var today_info_num = nums[0].getElementsByTagName("today_info_num")[0].firstChild.data;
//var all_info_num = nums[0].getElementsByTagName("all_info_num")[0].firstChild.data;
//var all_user_num = nums[0].getElementsByTagName("all_user_num")[0].firstChild.data;
document.getElementById("indexmsg2").innerHTML=today_info_num;
//document.getElementById("indexmsg1").innerHTML=all_info_num;
//document.getElementById("indexmsg3").innerHTML=all_user_num;
}
loadXML();
document.getElementById("msgdate").innerHTML="2009年06月23日 星期二 ";
//window.onload=function() {
var msg = "地宝网让您免费发布、查询南昌生活信息!请认准网址www.tiboo.cn " ;
window.status = msg;
if (top.location != self.location) {top.location=self.location;}
//}