document.getElementById('minitaotao').innerHTML="
- 1 : 陶忠 于 2011-12-28 滔滔
今天是公元2011年12月28日星期三,陶祎然3岁3个月零14天! (1200天)(通过网页) - 2 : 小宝爸 于 2011-11-6 滔滔
终于下雨了,糟糕的空气,明天开始气温逼近0度,看来离下雪不远了!(通过网页) - 查看更多滔滔>>
";
function savetaotao(){
if (document.taotao_form.content.value==''){
document.taotao_form.content.focus();
return false;
}
if(document.taotao_form.iss.checked)
iss=0
else
iss=1
gettaotaodata('Plugins/taotao/minitaotao.asp?action=post&s=2&content='+encodeURIComponent(document.taotao_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 gettaotaodata(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('minitaotao').innerHTML=xmlhttp.responseText;
}
}
}
xmlhttp.send(null);
}