//Insert these lines in that place of page, where there should be clocks.
//----   Choice of variables   ----\\
wid_num=8
hei_num=13
//---------The description---------\\
/*
wid_num - width of the image.
hei_num - height of the image.
*/
//----------------------------------\\

//This and others free scripts you can find on a site: artdhtml.com
//The script works both with Internet Explorer and with Netscape.

wid_dvoe=wid_num/2
wid_sp=1

old_m=""
function write_t(wr_h,wr_m,wr_s)
{
wr_h=wr_h+""
wr_m=wr_m+""
wr_s=wr_s+""

if (wr_s.length==2)
{document.images.s1.src="clock/"+wr_s.charAt(0)+".gif";document.images.s2.src="clock/"+wr_s.charAt(1)+".gif"}
else{document.images.s1.src="clock/0.gif";document.images.s2.src="clock/"+wr_s.charAt(0)+".gif"}

if(old_m==wr_m){return}
old_m=wr_m
if (wr_m.length==2)
{document.images.m1.src="clock/"+wr_m.charAt(0)+".gif";document.images.m2.src="clock/"+wr_m.charAt(1)+".gif"}
else{document.images.m1.src="clock/0.gif";document.images.m2.src="clock/"+wr_m.charAt(0)+".gif"}

if (wr_h.length==2)
{document.images.h1.src="clock/"+wr_h.charAt(0)+".gif";document.images.h2.src="clock/"+wr_h.charAt(1)+".gif"}
else{document.images.h1.src="clock/0.gif";document.images.h2.src="clock/"+wr_h.charAt(0)+".gif"}

}
function varia()
{
date_=new Date()
hour_=date_.getHours()
min_=date_.getMinutes()
sec_=date_.getSeconds()
tim_=hour_+":"+min_+":"+sec_
write_t(hour_,min_,sec_)
}

document.write ("<img name='h1' src=clock/space.gif width="+wid_num+" height="+hei_num+"><img name='h2' src=clock/space.gif width="+wid_num+" height="+hei_num+"><img src=clock/dvoe.gif width="+wid_dvoe+" height="+hei_num+"><img name='m1' src=clock/space.gif width="+wid_num+" height="+hei_num+"><img name='m2' src=clock/space.gif width="+wid_num+" height="+hei_num+"><img src=clock/dvoe.gif width="+wid_dvoe+" height="+hei_num+"><img name='s1' src=clock/space.gif width="+wid_num+" height="+hei_num+"><img name='s2' src=clock/space.gif width="+wid_num+" height="+hei_num+">")

loadImgs = new Array()

for (num_=0; num_<10;num_++)
{
  loadImgs[num_] = new Image
  loadImgs[num_].src = "clock/"+num_+".gif"
  
}

tim_int=window.setInterval("varia()",1000)