xajax loading
时间:2007-05-10 来源:liuxingyuyuni
?php
require("xajax/xajax.inc.php");
function showMsgOne()
{
$objResponse = new xajaxResponse();
sleep(5);
return $objResponse;
}
function showMsgTwo()
{
$objResponse = new xajaxResponse();
sleep(20);
return $objResponse;
}
$xajax = new xajax();
$xajax->registerFunction('showMsgOne');
$xajax->registerFunction('showMsgTwo');
$xajax->processRequests();
?>html>
head>
title>Loading Bar Demo/title>
? $xajax->printJavascript("./xajax/"); ?>
/head>
body onload="xajax_showMsgOne();xajax_showMsgTwo();">
script type="text/javascript">
/script>
div id="ldMsgOne" style="font-size: 12px; display: none;">
数据1载入中...
/div>
div id="ldMsgTwo" style="font-size: 12px; display: none;">
数据2载入中...
/div>
/body>
/html>
相关阅读 更多 +
排行榜 更多 +