返回首页
当前位置: 主页 > JavaScript 教程 >

javascript 显示客户端时间

时间:2010-06-06 21:08来源:未知 作者:admin 点击:
script language=javascript function ShowTimer() { var d=new Date(); nyear=d.getYear(); nmonth=d.getMonth()+1; nday=d.getDate(); nhrs=d.getHours(); nmin=d.getMinutes(); nsec=d.getSeconds(); t=setTimeout( wsp() ,1000); window.status=nyear+ -

<script   language=javascript>
function   ShowTimer()
{
var   d=new   Date();
nyear=d.getYear();
nmonth=d.getMonth()+1;
nday=d.getDate();
nhrs=d.getHours();
nmin=d.getMinutes();
nsec=d.getSeconds();
t=setTimeout( "wsp() ",1000);
window.status=nyear+ "- "+nmonth+ "- "+nday+ "   "+nhrs+ ": "+nmin+ ": "+nsec;
}
</script>  

(责任编辑:admin)
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名:密码: 验证码:点击我更换图片
推荐赞助商
推荐内容