document.getElementById('mininotes').innerHTML="
- bigmt at 2009-1-5 said:
再过半个月就放假啦!超级想念宝贝儿子! - bigmt at 2008-12-25 said:
博客成功升级,庆祝一下。顺祝诸位朋友生蛋快乐! - susan at 2008-12-23 said:
祝大家圣诞元旦快乐! - bigmt at 2008-12-18 said:
出差归来,第一件事情就是看看我久违的博客,呵呵。 - 赖燕华 at 2008-12-14 said:
看到了新皮,不错!很简洁。
More >>
";
function saveNote(){
if (document.form1.content.value==''){
document.form1.content.focus();
return false;
}
if(document.form1.isp.checked)
isp=1
else
isp=0
getdata('mininotes.asp?action=post&s=5&content='+encodeURIComponent(document.form1.content.value)+'&isp='+isp);
}
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 getdata(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('mininotes').innerHTML=xmlhttp.responseText;
}
}
}
xmlhttp.send(null);
}