//request.html script type="text/javascript" var xmlHttp; function createXMLHttpRequest() { //创建一个xmlHttpRequest对象 if (window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } else if (window.XMLHttpRequest) { xmlHttp = new XMLHttpRequest(); } } function dealAct(){ var url = "requestPage.php"; //请求页面url createXMLHttpRequest(); xmlHttp.onreadysta...[ 查看全文 ]
//request.html script type="text/javascript" var xmlHttp; function createXMLHttpRequest() { //创建一个xmlHttpRequest对象 if (window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } else if (window.XMLHttpRequest) { xmlHttp = new XMLHttpRequ...[ 查看全文 ]
效果如下: 代码如下: !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" html head titleAjax Progress Bar/title script type="text/javascript" var xmlHttp; var key; var bar_color = 'gray';//进度条的颜色 var span_id = "block"; var clear = " "; function createXMLHttpRequest()//创建XMLHttpRequest对象 { if(window.ActiveXObject) { xmlHttp ...[ 查看全文 ]