【www.gdgbn.com--php常用代码】

function contact(resumeid,issee){
var xmlhttp;
try{xmlhttp=new activexobject("msxml2.xmlhttp");}
catch (e){
 try{xmlhttp=new activexobject("microsoft.xmlhttp");}
catch (e){
 try{xmlhttp=new xmlhttprequest();}
 catch (e){}
  }
 }
 //创建请求,并使用escape对email编码,以避免乱码
 xmlhttp.open("get","/inc/contacts.php教程?resumeid="+escape(resumeid)+ "&issee="+escape(issee)+ "&t=" + new date().gettime());
 xmlhttp.onreadystatechange=function()
 {if(4==xmlhttp.readystate)
 {if(200==xmlhttp.status)
 {msg=xmlhttp.responsetext;}
 else{msg="网络链接失败!";}
 var ch=document.getelementbyid("contact");
 ch.innerhtml=msg;
 }else{msg="数据读取中,请稍后...";
 var ch=document.getelementbyid("contact");
 ch.innerhtml=msg;
 }
}
xmlhttp.send(null);
return false;
}

contacts.php文件,是一些常用的html代码。

本文来源:http://www.gdgbn.com/jiaocheng/28184/