可以在客户端用javascript实现,

解决方案 »

  1.   

    客户端时间:javascript
    服务器端时间:javascript+msxml
      

  2.   

    客户端
    function dd()
    {
    var d=new Date();
    id1.innerHTML=d.getSeconds(); 
    window.setTimeout("dd()",1000);
    }
      

  3.   

    microren(阿呆阿瓜) :能不能详细一点?
      

  4.   

    javascript<!--
    IDS=window.setTimeout("EOE_ShowDate()",1000)
    function EOE_ShowDate()
    {
    var strYear
    var strMonth
    var strDay
    var strHour
    var strMinute
    var strSecond
    var dNowDate

    dNowDate = new Date()
    strYear   = dNowDate.getYear() + "年"
    strMonth  = dNowDate.getMonth()+1
    if(strMonth>=10)
    strMonth = strMonth + "月"
    else
    strMonth = "0"+strMonth + "月"

    strDay  = dNowDate.getDate()
    if(strDay>=10)
    strDay = strDay + "日"
    else
    strDay = "0"+strDay + "日"

    strHour  = dNowDate.getHours()
    if(strHour>=10)
    strHour = strHour + "时"
    else
    strHour = "0"+strHour + "时" strMinute = dNowDate.getMinutes()
    if(strMinute>=10)
    strMinute = strMinute + "分"
    else
    strMinute = "0"+strMinute + "分" strSecond = dNowDate.getSeconds()
    if(strSecond>=10)
    strSecond = strSecond + "秒"
    else
    strSecond = "0"+strSecond + "秒" divDate.innerHTML = strYear+strMonth+strDay+"&nbsp;"+strHour+strMinute+strSecond
    //divDate.innerHTML = dNowDate.getMonth()

    IDS=window.setTimeout("EOE_ShowDate()",1000)
    }