実際、これを行うという原則は非常に単純ですが、当時それを実装する方法については考えていませんでした。 XMLHTTPを使用して実装しました。もちろん、他の方法があるので、私はあまり言いません。
現在、フォーラムの多くは「完全なコード」を必要としています。それを読んだ後、私は本当に...汗 - _-!
A.html
コードコピーは次のとおりです。<?xmlversion = "1.0" encoding = "UTF-8"?>
<
<htmlxmlns = "http://www.w3.org/1999/xhtml">
<head>
<title> xmlhttpmission-http://www.never-online.net </title>
<metahttp-equiv = "imagetoolbar" content = "no"/>
<metaname = "author" content = "bluedestiny、never-online"/>
<metaname = "keywords" content = "mozillacss、c#、。net、reference、www.never-online.net"/>
<Metaname = "Description" content = "Bluedestiny、never-online"/>
<metaname = "title" content = "mozillacssreferenceanddemo-http://www.never-online.net"/>
<metaname = "creator.name" content = "geniuslau、never-online、bluedestiny"/>
<styletype = "text/css" media = "all" title = "default">
@import "main.css";
</style>
<scriptType = "text/javascript">
// <![cdata [
functionmission(){
varx = newActiveXObject( "msxml2.xmlhttp.3.0");
x.open( "get"、 "now.asp?t ="+math.random()。tofixed(4)、false);
x.send();
vardemo = document.getElementById( "demo");
varnow = demo.innerhtml = x.responsetext;
if(now == "2006-6-2315:42:20"){
varwnd = window.open( "http://blog.csdn.net/bluedestiny"、 ""、 "");
};
_x = window.settimeout(ミッション、1000)
}
onload = mission;
//]]>
</script>
</head>
<bodyid = "www.never-online.net">
<divid = "demo"> </div>
</body>
</html>
now.asp
次のようにコードをコピーします:<%
callmain()
functionmain()
respons.write(now())
エンド機能
%>