mroe changes...
This commit is contained in:
1
lib/time.inc.php
Executable file
1
lib/time.inc.php
Executable file
@@ -0,0 +1 @@
|
||||
<?php echo date('F d, Y H:i:s') ?>
|
||||
19
lib/timer.js
Executable file
19
lib/timer.js
Executable file
@@ -0,0 +1,19 @@
|
||||
function doAjaxGet(dataSource) {
|
||||
if(navigator.appName == "Microsoft Internet Explorer") {
|
||||
objHTTP = new ActiveXObject("Microsoft.XMLHTTP");
|
||||
} else {
|
||||
objHTTP = new XMLHttpRequest();
|
||||
}
|
||||
objHTTP.open("POST", dataSource, true);
|
||||
objHTTP.onreadystatechange = function()
|
||||
{
|
||||
if (objHTTP.readyState == 4 && objHTTP.status == 200) {
|
||||
document.getElementById('oClock').innerHTML = objHTTP.responseText;
|
||||
}
|
||||
}
|
||||
objHTTP.send('null');
|
||||
}
|
||||
function startclock() {
|
||||
doAjaxGet('time.inc.php');
|
||||
setTimeout('startclock()',1000);
|
||||
}
|
||||
Reference in New Issue
Block a user