<meta http-equiv="Content-Type" content="text/html;charset=iso-2022-jp">
<title>Http Keep-Alive</title>
-<script type="text/javascript">
-
-//<!--
-function createXMLHttpRequest() {
- try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) {}
- try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {}
- try { return new XMLHttpRequest(); } catch(e) {}
- alert("XMLHttpRequest not supported");
- return null;
-}
-
-function onTimeout()
-{
- if(httpObj.readyState!=4){
- document.getElementById("dispmsg").innerHTML = 'ERROR-01';
- connect=0;
- }
-
- if(connect==1){
- sendHello();
- setTimeout('onTimeout()', timeInterval);
- }
-}
-
-function sendHello(){
-
- // http communication object
- httpObj=createXMLHttpRequest();
- httpObj.onreadystatechange = displayResponse;
-
- try{
- httpObj.open("GET","%%HTTPHELLOURL%%"+Math.random(),true);
- }catch(e){
- document.getElementById("dispmsg").innerHTML = 'ERROR-02';
- connect=0;
- }
-
- httpObj.send(null);
-}
-
-function displayResponse()
-{
- if(httpObj.readyState==4){
- today=new Date;
- hh=today.getHours(); mm=today.getMinutes();
- if(hh<10)hh='0'+hh; if(mm<10)mm='0'+mm;
- document.getElementById("dispmsg").innerHTML = hh+':'+mm;
- }
-}
-
-function init()
-{
- connect=1;
- sendHello();
-
- // http request after timeInterval(ms)
- timeInterval =%%HTTPHELLOINTERVAL%%;
-
- // get next text after some delay
- setTimeout('onTimeout()', timeInterval);
-}
-//-->
-</script>
+<script type="text/JavaScript" src="%%HTTPKEEPJSURL%%"></script>
</head>
<body>
-<script language="JavaScript">
-<!--
- init();
-//-->
-</script>
<noscript>
<p><b>JavaScript\e$B$,L58z$K@_Dj$5$l$F$$$^$9!#3NG'2<$5$$!#\e(B</b></p>
</noscript>
+
<p>\e$B%M%C%H%o!<%/$rMxMQ$G$-$^$9!#\e(B</p>
<p>\e$BMxMQ$,=*$C$?$iI,$:\e(BWeb\e$B%V%i%&%6$r=*N;$7$F$/$@$5$$!#%M%C%H%o!<%/MxMQ5v2D$b<+F0E*$K<h$j>C$5$l$^$9!#\e(B
</p>
</p>
<hr />
-<p>\e$B>e$N%P!<1&C<$K\e(BERROR\e$B$,I=<($5$l$k$H$-$O!"\e(B
+<p>\e$B@5>o;~$K$O!">e$N%P!<1&C<$N;~7W$,99?7$5$l$^$9!#$=$&$J$i$J$$>l9g$O!"\e(B
<a href="%%TERMINATEURL%%"><b>\e$BMxMQCfCG\e(B</b></a>\e$B$r%/%j%C%/$7$F\e(B
\e$B%V%i%&%6$r=*N;$7$?8e!"G'>Z%Z!<%8$K$*$$$F\e(BJAVA\e$BJ}<0$rA*Br$7$F$/$@$5$$!#\e(B
-
-<script language="JavaScript">
-!--
- window.open("%%STARTURL%%","window1");
-//-->
-</script>
+</p>
<table bgcolor="lightyellow" border="1">
<tr><td>
\e$B:n6HMQ%&%#%s%I%&$,3+$+$J$$>l9g$K$O!"\e(B
<a href="%%STARTURL%%" target="_blank"><h3>[\e$B%9%?!<%H%Z!<%8\e(B]</h3></a>
\e$B$r%/%j%C%/$7$F$/$@$5$$!#\e(B
-
</td></tr>
</table>
+<script>
+//<!--
+ window.open("%%STARTURL%%","window1");
+ initHttpkeep(%%HTTPHELLOINTERVAL%%,"%%HTTPHELLOURL%%");
+//-->
+</script>
+
</body>
</html>