xyyu 发表于 2009-1-13 18:21

<body>
<span id=\"liveclock\" style\"=width: 109px; height: 15px\"></span>
<SCRIPT language=javascript>
function www_qblue_cn()
{
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
if(minutes<=9)
minutes=\"0\"+minutes
if(seconds<=9)
seconds=\"0\"+seconds
myclock=\"<font size=\'5\' color=\'purple\' face=\'Arial black\'>\"+hours+\":\"+minutes+\":\"+seconds+\"</font>\"
if(document.layers){document.layers.liveclock.document.write(myclock)
document.layers.liveclock.document.close()
}else if(document.all)
liveclock.innerHTML=myclock
setTimeout(\"www_qblue_cn()\",1000)
}
www_qblue_cn();
//-->
</SCRIPT>
</body>

一叶轻舟 发表于 2009-2-21 08:30

<SCRIPT language=JavaScript>
var enabled = 0; today = new Date();
var day; var date;
if(today.getDay()==0) day = \"星期日\"
if(today.getDay()==1) day = \"星期一\"
if(today.getDay()==2) day = \"星期二\"
if(today.getDay()==3) day = \"星期三\"
if(today.getDay()==4) day = \"星期四\"
if(today.getDay()==5) day = \"星期五\"
if(today.getDay()==6) day = \"星期六\"
document.fgColor = \" cadet\";
date1 = \"<font size=5 face=华文新魏 color=cadet>\" + (today.getYear()) + \"年\" + (today.getMonth() + 1 ) + \"月\" + today.getDate() + \"日 \" + \"</font>\";
date2 = \"<font size=5 face=华文新魏 color=cadet>\" + day + \"</font>\";
document.write(\"<center>\" + date1.fontsize(2) + date2.fontsize(2) + \"</center>\");

</SCRIPT>

蒋胜兵 发表于 2009-9-12 02:04

呵呵,收藏了!谢谢啦!

蒋胜兵 发表于 2009-9-12 11:26

<span id=\"liveclock\" style\"=width: 109px; height: 15px\"></span>
<SCRIPT language=javascript>
function www_helpor_net()
{
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()

if(minutes<=9)
minutes=\"0\"+minutes
if(seconds<=9)
seconds=\"0\"+seconds
myclock=\"<font size=\'5\' color=cadet>\"+hours+\":\"+minutes+\":\"+seconds+\"</font>\"
if(document.layers){document.layers.liveclock.document.write(myclock)
document.layers.liveclock.document.close()
}else if(document.all)
liveclock.innerHTML=myclock
setTimeout(\"www_helpor_net()\",1000)
}
www_helpor_net();
//-->
</SCRIPT>

蒋胜兵 发表于 2009-9-12 23:54

<p id=\"me2\"
style=\"position: absolute; left: 155; top: -1; width: 668; height: 405; filter: glow(color=#FF0000, strength=00)\"
align=\"center\"><font face=\"华文新魏\" size=\"7\" color=\"#FFc000\"><strong><b>再来学习!</b></strong></font></p>
<script language=\"vbscript\">
dim i
dim j
i=0
j=0
sub window_onload()
me2.filters.glow.strength=i
me2.filters.glow.color=j
i=i+1
j=j+500
if i>250 then i=0
if j>26777215 then j=0
window.settimeout \"window_onload()\",100
end sub
</script>
页: 1 2 3 [4]
查看完整版本: 能在论坛显示的JS时间代码