De fato, o princípio de fazer isso é muito simples, mas não pensamos em como implementá -lo naquele momento. Eu usei o XMLHTTP para implementá -lo. Claro, existem outros métodos, então não vou dizer muito.
Agora, muitos dos fóruns precisam de algum "código completo". Depois de ler, eu realmente ... suor -_-!
a.html
A cópia do código é a seguinte: <? Xmlversion = "1.0" coding = "utf-8"?>
<!
<htmlxmlns = "http://www.w3.org/1999/xhtml">
<head>
<title> xmlhttpmission-http: //www.never-online.net </ititle>
<metahttp-equiv = "imagetoolbar" content = "não"/>
<metaname = "autor" content = "bluestiny, nunca-online"/>
<metaname = "Keywords" content = "mozillacss, c#, net, referência, www.never-online.net"/>
<metaname = "description" content = "bluestiny, nunca-online"/>
<metaname = "title" content = "mozillacssReferenceAnddemo-http: //www.never-online.net"/>
<metaname = "Creative.name" content = "Geniuslau, nunca-online, bluestiny"/>
<styleType = "text/css" media = "all" title = "padrão">
@import "main.css";
</style>
<scripttype = "text/javascript">
// <! [CDATA [
functionMission () {
varx = newActivexObject ("msxml2.xmlHttp.3.0");
x.open ("get", "agora.asp? t ="+math.random (). tofixed (4), false);
x.send ();
vardemo = document.getElementById ("Demo");
Varnow = Demo.innerhtml = x.ResponseText;
if (agora == "2006-6-2315: 42: 20") {
varhnd = window.open ("http://blog.csdn.net/bluedestiny", "", "");
};
_x = window.setTimeout (missão, 1000)
}
OnLoad = Mission;
//]]>
</script>
</head>
<BodyId = "www.never-online.net">
<Divid = "Demo"> </div>
</body>
</html>
agora.asp
Copie o código da seguinte forma: <%
callmain ()
FunctionMain ()
Response.write (agora ())
Função final
%>