??העשה המ
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0052)http://www.islandnet.com/~mark/javascript/clock.html -->
<HTML><HEAD>
<META content="text/html; charset=windows-1255" http-equiv=Content-Type>
<SCRIPT language=javascript><!--

// Clock
// By Mark Morley (mark@islandnet.com)
//
// This gizmo simply displays the current time of day, according
// to the user's computer.

// Set 'military' to either 0 or 1, depending on if you want the display
// to be in military time or not.
var military = 0;

// Set 'seconds' to either 0 or 1, depending on if you want it to display
// seconds or not.
var seconds = 1;

function clock()
{
time = new Date;

hour = time.getHours();
if( hour >= 12 )
{
am = 0;
if( military == 0 )
{
hour -= 12;
if( hour == 0 )
hour = 12;
}
}
else
am = 1;
if( hour < 10 )
hour = "0" + hour;
min = time.getMinutes();
if( min < 10 )
min = "0" + min;
sec = time.getSeconds();
if( sec < 10 )
sec = "0" + sec;
x = hour + ":" + min;
if( seconds )
x = x + ":" + sec;
if( military == 0 )
x = x + " " + (am ? "AM" : "PM");
document.clockform.clockfield.value = x;
setTimeout( "clock()", seconds ? 1000 : 10000 );
}

//--></SCRIPT>

<META content="MSHTML 5.00.2919.6307" name=GENERATOR>
<link rel="stylesheet" href="../../liora.css"></HEAD>
<BODY onload=clock()>
<FORM name=clockform><INPUT name=clockfield size=11> </FORM>

</BODY></HTML>