uf一焰殇 发表于 2008-12-25 18:35

uf一焰殇 发表于 2008-12-25 18:38

<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>~~~~~~~~~~~

uf一焰殇 发表于 2008-12-25 18:44

<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>

[ 本帖最后由 uf一焰殇 于 2008-12-25 18:58 编辑 ]

uf一焰殇 发表于 2008-12-25 18:49

<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>

uf一焰殇 发表于 2008-12-25 18:50

<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>

uf一焰殇 发表于 2008-12-25 18:54

<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>

uf一焰殇 发表于 2008-12-25 18:58

<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>

uf一焰殇 发表于 2008-12-25 19:01

<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>

uf一焰殇 发表于 2008-12-25 19:03

LZ啊`
能不能帮我弄个600字节以下的```

不要特效字了```能600以下就好。
就分钟和秒的``静态的时间显示```

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

<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>

[ 本帖最后由 xyyu 于 2009-1-13 18:17 编辑 ]
页: 1 2 [3] 4
查看完整版本: 能在论坛显示的JS时间代码