if (http.readyState = 1)
document.getElmentById(...).innertext = 'loading...';
document.getElmentById(...).innertext = 'loading...';
解决方案 »
- 两个网站共用一个数据库怎么做?
- php配置伪静态后总是提示404错误!
- PHP+DOM怎样修改包含在CDATA中的文本节点的值?
- 关于File_get_contents函数问题
- 变量问题
- 如何用 require_once() 函数包含 web 目录下的文件?
- 死的心都有了 Fatal error: Call to undefined function mysql_connect()
- 谁知道 关于PHP和Pdflib 连接的方法呀? 在线等!!
- 将session存到数据库,我对这个还比较陌生,不知道怎么做
- 关于访客计数器
- 请问用setcookie()为什么提示出错了?
- PHP在线文件管理器的问题
<?phprequire("xajax.inc.php");function slow_function(){ $objResponse = new xajaxResponse(); sleep(2); //we'll do nothing for two seconds $objResponse->addAlert("All done"); return $objResponse;}$xajax = new xajax();$xajax->registerFunction('slow_function');$xajax->processRequests();?><html> <head> <title>Loading Bar Demo</title> <? $xajax->printJavascript(); ?> </head> <body> <script type="text/javascript"> <!-- xajax.loadingFunction = function(){xajax.$('loadingMessage').style.display='block';}; function hideLoadingMessage() { xajax.$('loadingMessage').style.display = 'none'; } xajax.doneLoadingFunction = hideLoadingMessage; // --></script> <input type="button" onclick="xajax_slow_function();" value="Slow Function" /> <div id="loadingMessage" style="font-size: 22px; display: none;"> Loading... </div> </body>