<html>
<head>
<title>direct</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript">function getsys() {
alert("初次访问系统,点击OK!");//这里需要拦一下,否则走的太快???? document.getElementById("ip").value = SysInfo.ipstr;

}
</script>
</head>

<body onload="getsys()"> //这里怎么延迟加载一下??? <form name="form" action="login" method="post">
<input type="hidden" name="currPage" id="currPage" />
<input type="hidden" name="macIp" id="macIp" />
<input type="hidden" name="ip" id="ip" />

</form>
</body>
</html>

解决方案 »

  1.   

    <html>
    <head>
    <title>direct</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <script type="text/javascript">function getsys() {
    alert("初次访问系统,点击OK!");//这里需要拦一下,否则走的太快???? document.getElementById("ip").value = SysInfo.ipstr;}
    </script>
    </head><body onload="getsys()"> //这里怎么延迟加载一下??? <form name="form" action="login" method="post">
    <input type="hidden" name="currPage" id="currPage" />
    <input type="hidden" name="macIp" id="macIp" />
    <input type="hidden" name="ip" id="ip" /></form>
    </body>
    </html>
      

  2.   

    <html>
    <head>
    <title>direct</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <script type="text/javascript">function getsys() {
    alert("初次访问系统,点击OK!");//这里需要拦一下,否则走的太快???? document.getElementById("ip").value = SysInfo.ipstr;}
    </script>
    </head><body onload="getsys()"> //这里怎么延迟加载一下??? <form name="form" action="login" method="post">
    <input type="hidden" name="currPage" id="currPage" />
    <input type="hidden" name="macIp" id="macIp" />
    <input type="hidden" name="ip" id="ip" /></form>
    </body>
    </html>
      

  3.   

    <input type="hidden" name="ip" id="ip" onchange="getsys()" />不需要延迟