<SCRIPT>
<!--
document.write('<H3
ALIGN="center">' + Date() + '</H3>');
// -->
</SCRIPT>
<NOSCRIPT>
<P>Sorry, no Scripting Support...
</NOSCRIPT>
<SCRIPT SRC="Script/ScriptRemoteEx2.js">
</SCRIPT>
<NOSCRIPT>
<P>Sorry, no Scripting Support...
</NOSCRIPT>
Here is the content of Script/ScriptRemoteEx2.js:
document.write('<H3 ALIGN="center">' + Date() + '</H3>');
<SCRIPT TYPE="application/x-javascript"
SRC="Script/ScriptRemoteEx2.js">
</SCRIPT>
<NOSCRIPT>
<P>Sorry, no Scripting Support...
</NOSCRIPT>
Here is the content of Script/ScriptRemoteEx2.js:
document.write('<H3 ALIGN="center">' + Date() + '</H3>');
<SCRIPT LANGUAGE="JavaScript"
SRC="Script/ScriptRemoteEx2.js">
</SCRIPT>
<NOSCRIPT>
<P>Sorry, no Scripting Support...
</NOSCRIPT>
Here is the content of Script/ScriptRemoteEx2.js:
document.write('<H3 ALIGN="center">' + Date() + '</H3>');
Here is the content of ScriptEx5.htm:
<HTML>
<HEAD>
<TITLE>SCRIPT Handler: Clock Test</TITLE>
<SCRIPT>
<!--
var timer_id = 0; // reference
to timer
var form_name = 0; // Instance
label for form
var delay = 1000; // Delay between updates (1 sec)
function updater(){
// Set window timer interrupt for a
number of delay seconds
timer_id
= window.setTimeout("updater()", delay);
// Call Date() to get new date and
time to return to the caller
form_name.result.value = new Date();
form_name.result2.value =
form_name.result.value;
form_name.result3.value =
form_name.result.value;
}
function start(element_id) {
form_name = element_id; // Attach
time_field to form element name as argument
updater(); // Call updater() to start
the clock
}
function stop() {
window.clearTimeout(timer_id); // Remove Timer reference
}
// End Script -->
</SCRIPT>
</HEAD>
<!-- ONLOAD triggers start(), passing the named form
ONUNLOAD triggers stop(), which deletes the timer
-->
<BODY ONLOAD="start(document.forms.clock)"
ONUNLOAD="stop()">
<H2 ALIGN="center">Dynamic
Clock Script</H2>
<FORM NAME="clock">
<CENTER>
<B>Clock Output</B>
(update every second)<BR>
<BR>
<INPUT TYPE="text"
NAME="result"
SIZE="18"><BR><BR>
<INPUT TYPE="text"
NAME="result2"
SIZE="39"><BR><BR>
<INPUT TYPE="text"
NAME="result3"
SIZE="50">
</CENTER>
</FORM>
</BODY>
</HTML>