腊梅花期:谁知道MSN空间FLASH时钟的代码啊?谢谢啦!!!

来源:百度文库 编辑:神马品牌网 时间:2024/04/29 16:17:11

建三个动态文本:变量名分别是hn,mn,sn,各自代表时、分、秒。然后在建一个actionscript层,将下面的代码贴上就可以了。其他的外观的东西自己做应该没问题吧?呵呵:)
sydate = new Date();
s = sydate.getseconds();
m = sydate.getminutes();
h = sydate.gethours();
hn = h;
mn = m;
sn = s;
delete sydate;
if (h <10) {
hn = "0"+ hn;
}
if (m <10) {
mn = "0"+ mn;
}
if (s <10) {
sn = "0"+ sn;
}

<DIV align=center><EMBED src=http://dl.souxp.com/fzjzykj/previews/clocks/clock1.swf width=180 height=180 type=application/x-shockwave-flash></DIV>
<DIV></DIV>

效果在这儿——http://blog.sina.com.cn/u/1210158990