document.getElementById('minixzt').innerHTML="
- 1 : admin 2010-10-18
更新真是一件麻烦事儿 - 2 : admin 2010-10-13
好吧,我又把小纸条放出来了,明天晚上去世博园咯,准备借个“无敌兔”杀过去 - 3 : admin 2010-8-20
立秋这么多天了,上海还是这么热,鸟天气... - 4 : admin 2010-8-4
热,炎热,非常热,热得受不鸟了,人工降雨吧 - 5 : admin 2010-7-27
最近连续暴雨三天,周五又要出太阳了,暴晒唉~ - 更多..
";
function saveSRSXZT(){
if (document.srsxzt_form.content.value==''){
document.srsxzt_form.content.focus();
return false;
}
if(document.srsxzt_form.iss.checked)
iss=0
else
iss=1
getSRSxztdata('Plugins/SRS_XiaoZhiTiao/minixzt.asp?action=post&s=5&content='+encodeURIComponent(document.srsxzt_form.content.value)+'&iss='+iss);
}
function createxmlhttp(){
var xmlhttp=false;
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}catch (e) {
xmlhttp = false;
}
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();
if (xmlhttp.overrideMimeType) {//设置MiME类别
xmlhttp.overrideMimeType('text/xml');
}
}
return xmlhttp;
}
function getSRSxztdata(sURL){
var xmlhttp=createxmlhttp();
if(!xmlhttp){
alert("你的浏览器不支持XMLHTTP!!");
return;
}
xmlhttp.open("GET",sURL,true);
//中文乱码!!
//xmlhttp.setrequestheader("content-type","application/x-www-form-urlencoded");
xmlhttp.onreadystatechange= function () {
if(xmlhttp.readyState==4){
if(xmlhttp.status==200){
//alert(xmlhttp.responseText);
//return xmlhttp.responseText;
//return xmlhttp.responseText;
document.getElementById('minixzt').innerHTML=xmlhttp.responseText;
}
}
}
xmlhttp.send(null);
}