version 1.56, 2002/05/24 20:43:12
|
version 1.58, 2002/05/25 20:41:12
|
Line 105 var clientwindow=opener;
|
Line 105 var clientwindow=opener;
|
|
|
function advanceclock() { |
function advanceclock() { |
clock.setTime(clock.getTime()+1000); |
clock.setTime(clock.getTime()+1000); |
|
|
|
var days=""+clock.getDate(); |
|
if (days.length<2) { days="0"+days; } |
|
var mons=""+(clock.getMonth()+1); |
|
if (mons.length<2) { mons="0"+mons; } |
|
var years=""+clock.getYear(); |
|
years=years.substring(1,3); |
|
statustop=mons+'/'+days+'/'+years; |
|
|
var secs=""+clock.getSeconds(); |
var secs=""+clock.getSeconds(); |
if (secs.length<2) { secs="0"+secs; } |
if (secs.length<2) { secs="0"+secs; } |
var mins=""+clock.getMinutes(); |
var mins=""+clock.getMinutes(); |
if (mins.length<2) { mins="0"+secs; } |
if (mins.length<2) { mins="0"+mins; } |
var hours=""+clock.getHours(); |
var hours=""+clock.getHours(); |
if (hours.length<2) { hours=" "+hours; } |
if (hours.length<2) { hours=" "+hours; } |
statusbot=hours+':'+mins+':'+secs; |
statusbot=hours+':'+mins+':'+secs; |
if (!dislocked) { display(); } |
|
|
if (!dislocked) { showdisplay(); } |
|
|
setTimeout('advanceclock();',1000); |
setTimeout('advanceclock();',1000); |
} |
} |
|
|
Line 157 function deactivate () {
|
Line 168 function deactivate () {
|
} |
} |
|
|
function display(utext,ltext) { |
function display(utext,ltext) { |
|
this.window.focus(); |
|
showdisplay(utext,ltext); |
|
} |
|
|
|
function showdisplay(utext,ltext) { |
var i; var ch; |
var i; var ch; |
this.window.focus(); |
|
dislocked=1; |
dislocked=1; |
if (utext == null) { utext = '';} |
if (utext == null) { utext = '';} |
if (ltext == null) { ltext = '';} |
if (ltext == null) { ltext = '';} |