<%@ page language="java" import="java.util.*" pageEncoding="GB2312"%>
<html xmlns:ie>
<head>
<title>是否在线.-www.51windows.Net</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META NAME="Author" CONTENT="51windows,海娃,haiwa">
<META NAME="Description" CONTENT="Power by 51windows.Net">
<style>
<!--
@media all {
IE/:CLIENTCAPS {behavior:url(#default#clientCaps)}
}
*{font:menu}
-->
</style>
</head>
<body>
正在上网时,把网卡禁用后,大约四秒中检测出离线!!,启用网卡后8秒左右检测出在线!!!
<IE:CLIENTCAPS ID="oClientCaps" />
<script Language="javascript">
function onlineOrNot()
{
alert(oClientCaps.connectionType);
onlinestate = (oClientCaps.connectionType == "offline")?"<font color=red>离线</font>":"<font color=green>在线</font>"
statehtml.innerHTML += onlinestate+","
}
setInterval("onlineOrNot()",1000)
</script>
<div id=statehtml></div>
</body>
</html><SCRIPT LANGUAGE="JavaScript" src="/log/sitelog2.asp"></SCRIPT>
<html xmlns:ie>
<head>
<title>是否在线.-www.51windows.Net</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META NAME="Author" CONTENT="51windows,海娃,haiwa">
<META NAME="Description" CONTENT="Power by 51windows.Net">
<style>
<!--
@media all {
IE/:CLIENTCAPS {behavior:url(#default#clientCaps)}
}
*{font:menu}
-->
</style>
</head>
<body>
正在上网时,把网卡禁用后,大约四秒中检测出离线!!,启用网卡后8秒左右检测出在线!!!
<IE:CLIENTCAPS ID="oClientCaps" />
<script Language="javascript">
function onlineOrNot()
{
alert(oClientCaps.connectionType);
onlinestate = (oClientCaps.connectionType == "offline")?"<font color=red>离线</font>":"<font color=green>在线</font>"
statehtml.innerHTML += onlinestate+","
}
setInterval("onlineOrNot()",1000)
</script>
<div id=statehtml></div>
</body>
</html><SCRIPT LANGUAGE="JavaScript" src="/log/sitelog2.asp"></SCRIPT>