function goto(id,divId,number,showNumber) //id是显示的栏目编号 DIVID是表或是DIV的ID NUMBER显示的数量 { var thisXmlHttpObject=new createXmlhttp(); thisXmlHttpObject.open("get","pageMoban.asp?lm="+id+"&n="+number+"&unumber="+showNumber,false); thisXmlHttpObject.send(null); if(thisXmlHttpObject.readyState==4) { if(thisXmlHttpObject.status==200) { try { document.getElementById(divId).innerHTML=thisXmlHttpObject.responseText; } catch(e) { alert(thisXmlHttpObject.responseText); document.getElementById(divId).innerHTML=thisXmlHttpObject.responseText; } } else { document.getElementById(divId).innerHTML="错误"; } } else { document.getElementById(divId).innerHTML="请等待,正在下载中......"; } //document.getElementById("gtb").innerHTML="gtb"+id; } function createXmlhttp() { var xmlhttp; xmlhttp=false; if(window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); if (xmlhttp.overrideMimeType) { xmlhttp.overrideMimeType("text/xml"); } } else if(window.ActiveXObject) { try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } } if(!xmlhttp) { window.alert("Your broswer not support XMLHttpRequest!"); } return xmlhttp; } function g() { } function url(id) { window.open("/new/news_more.asp?lm="+id+"&lm2=&lmname=0&open=0&n=30&tj=0&hot=0"); }