﻿function ShowTime()
{
  var strTime=""
  //设定时区差
  
  nhr=new Array(5)
  nhr[0]="北 京："
  nhr[1]="纽 约："
  nhr[2]="东 京："
  nhr[3]="伦 敦："
  nhr[4]="悉 尼："
  nhr[5]="法兰克福："

  tmpDate=new Date();
  tmpHrs=tmpDate.getHours();
  dhr=new Array(5)
  dhr[0]=0
  dhr[1]=-13
  dhr[2]=1
  dhr[3]=-8
  dhr[4]=2
  dhr[5]=-7

  
  strTime=strTime+" <table width=910 border=0 cellspacing=1 cellpadding=1><tr align=center>"
  for (var i=0;i<6;i++)
  {
    strTime=strTime+"<td height=20 align=center><font color=#000000>"+nhr[i]+" "
    //alert (tmpDate)
    tmpDate=new Date();
    
    tmpHrs=tmpDate.getHours();
    dhr[i]=tmpHrs+dhr[i]
    tmpDate.setHours(dhr[i]);
    date=tmpDate.getDate();
    month=tmpDate.getMonth()+1 ;
    year=tmpDate.getFullYear();
    hrs=tmpDate.getHours();
    mins=tmpDate.getMinutes();
    secs=tmpDate.getSeconds();
    if(hrs<10)
    hrs="0"+hrs;
    if(mins<10)
    mins="0"+mins;
    if(secs<10)
    secs="0"+secs;
    
    //strTime=strTime+(month);
    //strTime=strTime+("月");
    strTime=strTime+(date);
    strTime=strTime+("日 ");
    strTime=strTime+(hrs);
    strTime=strTime+(":");
    strTime=strTime+(mins);
    strTime=strTime+(":");
    strTime=strTime+(secs);
    strTime=strTime+"</font></td>";
  }
  strTime=strTime+"</tr></table>"  
  SpanTimeZone.innerHTML=strTime
  setTimeout('ShowTime()',1000);
}

