<div id="time">
Korea: <br>&nbsp;<span id=d1></span><br>
Vancouver: <br>&nbsp;<span id=d0></span><br>
Toronto: <br>&nbsp;<span id=d2></span>
</div>
</td></tr></table>

<script>
/*
 벤쿠버 -17시간
 중국 -1 시간
 시드니 +1 시간
 뉴욕 -14시간
*/

 function getTime(){
  d=new Date();
  dd=<? echo $Tt=date('d')?>;
  hh=<? echo $Tt=date('H')?>;
  mm=<? echo $Tt=date('i')?>;
  ss=<? echo $Tt=date('s')?>;

  h=new Array();
  t=new Array();

  h[h.length]=hh-1; //벤
  h[h.length]=hh+16-1; //
  h[h.length]=hh+3-1; //

  mm=(mm<10)?mm='0'+mm:mm;
  ss=(ss<10)?ss='0'+ss:ss;
 
  for(var i=0;i<h.length;i++){
   t[i]=dd;
   if(h[i]>=24){
    t[i]+=1;
    h[i]-=24;
   }
   if(t[i]>=32){
    t[i]=1;
   }
   h[i]=(h[i]<10)?h[i]='0'+h[i]:h[i];
 
//   document.getElementById('d'+i).innerHTML=t[i]+'일 '+h[i]+':'+mm+':'+ss;
   document.getElementById('d'+i).innerHTML=t[i]+'일 '+h[i]+':'+mm;
  }
 }
 tid=setInterval(getTime,1000);
</script>


서버시간을 구하여,
세계시간을 계산해 나타낸다...

2007/11/04 05:44 2007/11/04 05:44
받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS :: http://sharpsoul.com/sharp/rss/response/88

댓글+트랙백 ATOM :: http://sharpsoul.com/sharp/atom/response/88

트랙백 주소 :: http://sharpsoul.com/sharp/trackback/88

트랙백 RSS :: http://sharpsoul.com/sharp/rss/trackback/88

트랙백 ATOM :: http://sharpsoul.com/sharp/atom/trackback/88

댓글을 달아 주세요

댓글 RSS 주소 : http://sharpsoul.com/sharp/rss/comment/88
댓글 ATOM 주소 : http://sharpsoul.com/sharp/atom/comment/88