不用通过数据库调用系统时间啊,用javascript就挺简单啊
<html>
<head>
<title>Never give up !</title>
<script language="javascript">
function
time()
{
var st=new Date();
var minutes=add0(st.getMinutes());
var seconds=add0(st.getSeconds());
var result=st.getYear()+"-"+st.getMonth()+"-"+st.getDate()+"
"+st.getHours+":"+minutes+":"+seconds;
status=result;
setTimeout("time();",360);
}
function add0(time)
{
if(time<10)
time="0"+time;
return time;
}
</script>
<head>
<body onload="time()">
</body>
</html>
这样就行啦,在网页的状态栏上显示当前的系统时间,如“2008-7-25
21:12:05”