莺燕音画 发表于 2009-2-26 19:04

竖排显示的汉字时钟

<DIV style="LEFT: 250px; WIDTH: 51px; POSITION: relative; TOP: 30px"><IFRAME marginWidth=0 marginHeight=0 src=http://static6.ci123.com/photo/original/3195/4c7bf895c7f11464910c9a96688c4a11.jpgframeBorder=0 width=51 scrolling=no height=390></IFRAME></div><br><br><br><br>

[ 本帖最后由 roger01rao 于 2009-2-28 17:33 编辑 ]

祝福 发表于 2009-2-26 21:38

不错的js时钟!

傲雪纷飞 发表于 2009-2-26 21:42

真是厉害~

yutikl 发表于 2009-3-7 21:21

dddddddddddddddddddd

ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd

58317813AAA 发表于 2009-3-20 21:58

怎么做的????

非常开心 发表于 2009-3-22 00:08

非常不错的钟

wei8817 发表于 2009-4-14 10:02

不错哦!这个怎么做的啊?

非常开心 发表于 2009-4-23 02:43

收藏了

帝国洋洋 发表于 2009-4-26 15:48

<html><head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">
<META NAME=\"莺燕音画\" CONTENT=\"黄莺语柳紫燕归梁\">
<title>汉语时钟</title>
<head>
<style>
<!--
table.hclock {font-size: 20pt; font-style: bold; color: lime; border-color: red; background-color: black}
-->
</style>
</head>
<body>
<center>
<script language=\"JavaScript\">



var snum = new Array();
snum=\'\\u3007<br />\';
snum=\'\\u4e00<br />\';
snum=\'\\u4e8c<br />\';
snum=\'\\u4e09<br />\';
snum=\'\\u56db<br />\';
snum=\'\\u4e94<br />\';
snum=\'\\u516d<br />\';
snum=\'\\u4e03<br />\';
snum=\'\\u516b<br />\';
snum=\'\\u4e5d<br />\';
var sten = new Array();
sten=\'\';
sten=\'\\u5341<br />\';
sten=\'\\u5eff<br />\';
sten=\'\\u5345<br />\';
sten=\'\\u534c<br />\';
sten=\'\\u4e94<br />\\u5341<br />\';
var jfancy = new Array();
jfancy=\'\';
jfancy=\'\\u58f1<br />\';
jfancy=\'\\u5f10<br />\';
jfancy=\'\\u53c2<br />\';
jfancy=\'\\u8086<br />\';
jfancy=\'\\u4f0d<br />\';
jfancy=\'\\u9678<br />\';
jfancy=\'\\u67d2<br />\';
jfancy=\'\\u634c<br />\';
jfancy=\'\\u7396<br />\';
jfancy=\'\\u62fe<br />\';
hanzero=\'\\u96f6<br />\';
hanht=\'\\u6642<br />\';
hanmt=\'\\u5206<br />\';
hanst=\'\\u79d2<br />\';


function givehan(inwhat,inhow) {
var outwhat = \'\';
if (inwhat==0) {
if (inhow==1) {outwhat = snum+snum} else {outwhat = hanzero}
}
else
{
if (inhow==0) {
var outbegin = \'\';
var outmiddle = \'\';
var outend = \'\';
if (inwhat>=20) {outbegin = snum};
if (inwhat>=10) {outmiddle = sten};
if (inwhat%10!=0) {outend = snum};
outwhat = outbegin+outmiddle+outend;
};
if (inhow==1) {outwhat = snum+snum};
if (inhow==2) {
var outend = \'\';
var outbegin = sten;
if (inwhat%10!=0) {outend = snum};
outwhat = outbegin+outend;
};
if (inhow==3) {
var outbegin = \'\';
var outmiddle = \'\';
var outend = \'\';
if (inwhat>=11) {outbegin = jfancy};
if (inwhat>=10) {outmiddle = jfancy};
if (inwhat%10!=0) {outend = jfancy};
outwhat = outbegin+outmiddle+outend;
};
};
return outwhat;
};

function hanstart(how) {

var now = new Date();
var hour = now.getHours(); // military
var minute = now.getMinutes();
var second = now.getSeconds();

foo = givehan(hour,how)+hanht+givehan(minute,how)+hanmt+givehan(second,how)+hanst;

return foo;
}

// The style numbers:
// 0 = neutral
// 1 = short
// 2 = like neutral but also special hanzi for \'20\' and \'30\'
// 3 = very ornate, Japanese style




document.write(\'<table border=\"5\" height=\"390\" width=\"50\" class=\"hclock\"><tr><td valign=\"middle\"><center><span id=\"hanclock0\">\'+hanstart(0)+\'</span></center></td></tr></table>\');





function upclock(){



hanclock0.innerHTML = hanstart(0)

}

setInterval(\"upclock()\",300);


//-->
</script>
</body>
</html>

是不是这样的啊?^_^

随缘天空 发表于 2009-4-26 16:24

<div id=\"postmessage_301171\" class=\"t_msgfont\"><DIV style=\"LEFT: 250px; WIDTH: 51px; POSITION: relative; TOP: 30px\"><IFRAME marginWidth=0 marginHeight=0 src=http://static6.ci123.com/photo/original/3195/4c7bf895c7f11464910c9a96688c4a11.jpgframeBorder=0 width=51 scrolling=no height=390></IFRAME></div><br><br><br><br>
页: [1] 2
查看完整版本: 竖排显示的汉字时钟