日期:2014-05-16 浏览次数:20869 次
<html> <head><title>E1_2</title> <script type="text/javascript"> var xmlHttp function showHint() { xmlHttp=GetXmlHttpObject() if(xmlHttp==null) { alert ("您的浏览器不支持AJAX!"); return; } var C_url="gethint.asp"; C_url=C_url+"?q="+"CAlarm_State"; C_url=C_url+"&sid="+Math.random(); xmlHttp.onreadystatechange=stateChanged; xmlHttp.open("GET",C_url,true); xmlHttp.send(null); var t=setTimeout("GetState()",1000) } function stateChanged() { if(xmlHttp.readyState==4) { document.getElementById("C_State").src=xmlHttp.responseText; } } function GetXmlHttpObject() { var xmlHttp=null; try { xmlHttp=new XMLHttpRequest(); } catch(e) { try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; } </script> </head> <body onload=showHint()> <form method=POST action=> <table border="0" width="200" cellspacing="4" cellpadding="4"> <tr> <td align="center" width="100"><font size="5">MTP-001</font></td> <td> </td> </tr> <tr> <td align="center" width="100"> <img border="0" id="H_State" width="24" height="24"> <img border="0" id="C_State" width="24" height="24"></td> <td> <p align="right"> <input type="submit" value=RUN name=run> <input type="submit" value=STOP name=stop></td> </tr> <tr> <td align="center" width="100"><b><font size="5">H C</font></b></td> <td align="center"><input type="submit" value=CLR name=clr></td> </tr> </table> </form> </html>