document.getElementById('mininotes').innerHTML="
- 1 : 波板糖好甜 于 2008-4-11 说
听君一席话,省我十本书! - 2 : 波板糖好甜 于 2008-4-9 说
人生如戏 - 3 : 波板糖好甜 于 2008-4-7 说
帅有个屁用!到头来还不是被卒吃掉! - 4 : 波板糖好甜 于 2008-4-6 说
还有什么能留给你 - 5 : 波板糖好甜 于 2008-3-18 说
这种欺骗如同卸装前后的非主流美女般伤害了我幼小的心灵
更多>>
";
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);
}