日期:2014-05-17  浏览次数:20685 次

js延迟加载??
<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>

------解决方案--------------------
setTimeout();