PHP+Javascript液晶时钟[2]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 terrywang 的 blog

  change(0,math.floor(now.gethours()/10));
  change(1,math.floor(now.gethours()%10));
  change(2,math.floor(now.getminutes()/10));
  change(3,math.floor(now.getminutes()%10));
  change(4,math.floor(now.getseconds()/10));
  change(5,math.floor(now.getseconds()%10));
  settimeout("show()",200);
}
</script>

</head>
<?
  
echo "<body bgcolor=".$color_back.">"
;
  echo 
"<table width=".(($size_small*3+$size_big+$distance)*6)." border=0 cellspacing=0 cellpadding=0><tr>"
;
  for (
$nunber=0;$number<6;$number
++)
  {
    
$recid=0
;
    echo 
"<td><table width=".($size_small*2+$size_big)." border=0 cellspacing=0 cellpadding=0><tr>"
;
    echo 
"<td width=".$size_small." height=".$size_small."></td>"
;
    echo 
"<td width=".$size_big." height=".$size_small."><div id=time".$number.$recid++." style="position:relativewidth:".$size_big."pxheight:".$size_small."pxbackground:".$color_dark."font-size:1px"></div></td>"
;
    echo 
"<td width=".$size_small." height=".$size_small."></td>"
;
    echo 
"</tr><tr>"
;

本文关键:PHP+Javascript液晶时钟
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top