<% @ Page Language = "Java" Import = "Java. util. *" pageencoding = "gb2312" %>
<HTML xmlns: IE>
<Head>
<Title> online?-www.51windows. Net </title>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Meta name = "author" content = "51 windows, Hawa, haiwa">
<Meta name = "Description" content = "power by 51windows. Net">
<Style>
<! --
@ Media all {
IE/: clientcaps {behavior: URL (# default # clientcaps )}
}
* {Font: menu}
-->
</Style>
</Head>
<Body>
When I disabled the network card while surfing the Internet, I checked it offline in about four seconds !!, An online error is detected about 8 seconds after the NIC is enabled !!!
<Ie: clientcaps id = "oclientcaps"/>
<Script language = "JavaScript">
Function onlineornot ()
{
Alert (oclientcaps. connectiontype );
Onlinestate = (oclientcaps. connectiontype = "offline ")? "<Font color = Red> offline </font>": "<font color = green> online </font>"
Statehtml. innerhtml + = onlinestate + ","
}
Setinterval ("onlineornot ()", 1000)
</SCRIPT>
<Div id = statehtml> </div>
</Body>
</Html> <script language = "JavaScript" src = "/log/sitelog2.asp"> </SCRIPT>