<script>
n0=
"#define t_width 3/n"
+"#define t_height 5/n"
+"static char t_bits[]={0xF,0x5,0x5,0x5,0xF}";
n1=
"#define t_width 3/n"
+"#define t_height 5/n"
+"static char t_bits[]={0x4,0x4,0x4,0x4,0x4}";
n2=
"#define t_width 3/n"
+"#define t_height 5/n"
+"static char t_bits[]={0xF,0x4,0xF,0x1,0xF}";
n3=
"#define t_width 3/n"
+"#define t_height 5/n"
+"static char t_bits[]={0xF,0x4,0xF,0x4,0xF}";
n4=
"#define t_width 3/n"
+"#define t_height 5/n"
+"static char t_bits[]={0x5,0x5,0xF,0x4,0x4}";
n5=
"#define t_width 3/n"
+"#define t_height 5/n"
+"static char t_bits[]={0xF,0x1,0xF,0x4,0xF}";
n6=
"#define t_width 3/n"
+"#define t_height 5/n"
+"static char t_bits[]={0xF,0x1,0xF,0x5,0xF}";
n7=
"#define t_width 3/n"
+"#define t_height 5/n"
+"static char t_bits[]={0xF,0x4,0x4,0x4,0x4}";
n8=
"#define t_width 3/n"
+"#define t_height 5/n"
+"static char t_bits[]={0xF,0x5,0xF,0x5,0xF}";
n9=
"#define t_width 3/n"
+"#define t_height 5/n"
+"static char t_bits[]={0xF,0x5,0xF,0x4,0xF}";
nD=
"#define t_width 3/n"
+"#define t_height 5/n"
+"static char t_bits[]={0x0,0x0,0xF,0x0,0x0}";
nS=
"#define t_width 3/n"
+"#define t_height 5/n"
+"static char t_bits[]={0x0,0x0,0x0,0x0,0x0}";
nT=
"#define t_width 3/n"
+"#define t_height 5/n"
+"static char t_bits[]={0x0,0xF,0x0,0xF,0x0}";
function setImg()
{
var now=new Date();
var month=now.getMonth()+1;
var strNow=strFormat(""+now.getYear(),4)+"D"+strFormat(""+month,2)+"D"+strFormat(""+now.getDate(),2)+"S"+strFormat(""+now.getHours(),2)+"T"+strFormat(""+now.getMinutes(),2)+"T"+strFormat(""+now.getSeconds(),2)+"T"+strFormat(""+now.getMilliseconds(),3);
ClockID.innerHTML="";
var vImg="";
for(iInde=0;iIndex<strNow.length;iIndex++)
{
vImg=vImg+"<img src=/"javascript:n"+strNow.substr(iIndex,1)+";/" width=/"9/" height=/"15/">/n";
ClockID.innerHTML=vImg;
}
}
function strFormat(str,iLen)
{
if(str.length<iLen)
{
for(iIndex=0;iIndex<iLen-str.length;iIndex++)
{
str="0"+str;
}
return str;
}
else
{return str;}
}
setInterval("setImg()",2000);
</script>
<center>
<div id="ClockID">
</div>
</center>
相关文章
- 利用原生Javascript实现计算器(未完待续)
- 利用JavaScript来实现省份—市县的二级联动
- 利用javascript对字符串加密
- JavaScript网站设计实践(四)编写about.html页面,利用JavaScript和DOM,选择性的显示和隐藏DIV元素
- C# DateTime的11种构造函数 [Abp 源码分析]十五、自动审计记录 .Net 登陆的时候添加验证码 使用Topshelf开发Windows服务、记录日志 日常杂记——C#验证码 c#_生成图片式验证码 C# 利用SharpZipLib生成压缩包 Sql2012如何将远程服务器数据库及表、表结构、表数据导入本地数据库
- 如何利用WebBrowser控件获取解析javascript后的html源代码?
- Javascript脱离回调地狱,利用生成器串行处理业务逻辑
- 利用JavaScript生成二维码并且中间有logo
- 简单的javascript实例一(时钟特效)
- JavaScript中利用Ajax 实现客户端与服务器端通信(九)