strongman
(strongman)
新手上路

一般会员
UID 67984
精华
0
积分 46
帖子 46
金钱 46 喜悦币
威望 0
人脉 0
阅读权限 10
注册 2006-1-12
状态 离线
|
[广告]: q
m
请达人再看看这个程序
<script language="JavaScript">
function GetResult()
{
var oBao = new ActiveXObject("Microsoft.XMLHTTP");
oBao.open(" OST","server.php",false);
oBao.send();
var strResult = oBao.responseText;
var arrResult = strResult.split("|");
num1 = arrResult[0];
num2 = arrResult[1];
num3 = arrResult[2];
num4 = arrResult[3];
num5 = arrResult[4];
num6 = arrResult[5];
function MyShow()
{
//2秒自动刷新一次,2秒取得一次数据.
timer = window.setInterval("GetResult()",1000);
}
</script>
<body onload="MyShow()">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
</body>
num1,num2..这些数据已经取到,而且每1秒刷新一次,我要把num1,num2..显示到
<body onload="MyShow()">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
</body>
这个表格里面请问怎么去显示。搞了很久还不知道怎么去取到num1..把这些数据怎么放到表格里。
|
|