叶飞
发表于 2008-2-10 23:09
油菜哇,羡慕,呵呵
crlou
发表于 2008-4-19 22:34
偶来试试
<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>
<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>
crlou
发表于 2008-4-19 22:58
<font color=#0011ff face=华文新魏 size=6>离08年国庆节还有:</font>
<span id=\"span_dt_dt\" style=\'align=center no:1px solid \'></span>
<SCRIPT language=javascript>
<!--
//document.write(\"\");
function show_date_time(){
window.setTimeout(\"show_date_time()\", 1000);
BirthDay=new Date(\"10-1-2008\");//
today=new Date();
timeold=(BirthDay.getTime()-today.getTime());
sectimeold=timeold/1000
secondsold=Math.floor(sectimeold);
msPerDay=24*60*60*1000
e_daysold=timeold/msPerDay
daysold=Math.floor(e_daysold);
e_hrsold=(e_daysold-daysold)*24;
hrsold=Math.floor(e_hrsold);
e_minsold=(e_hrsold-hrsold)*60;
minsold=Math.floor((e_hrsold-hrsold)*60);
seconds=Math.floor((e_minsold-minsold)*60);
span_dt_dt.innerHTML=\"<b><align=center><font color=#99bb33 face=华文新魏 size=8>\"+daysold+\"天\"+hrsold+\"小时\"+minsold+\"分\"+seconds+\"秒\"+\"</b>
</font>\" ;
}
show_date_time();
//-->
</SCRIPT>****
xiangyeqi
发表于 2008-4-20 20:28
<font color=#00FF00 face=华文新魏 size=4>离08年劳动节还有:</font>
<span id=\"span_dt_dt\" style=\'align=center no:1px solid \'></span>
<SCRIPT language=javascript>
<!--
//document.write(\"\");
function show_date_time(){
window.setTimeout(\"show_date_time()\", 1000);
BirthDay=new Date(\"5-1-2008\");//这个日期是可以修改的
today=new Date();
timeold=(BirthDay.getTime()-today.getTime());
sectimeold=timeold/1000
secondsold=Math.floor(sectimeold);
msPerDay=24*60*60*1000
e_daysold=timeold/msPerDay
daysold=Math.floor(e_daysold);
e_hrsold=(e_daysold-daysold)*24;
hrsold=Math.floor(e_hrsold);
e_minsold=(e_hrsold-hrsold)*60;
minsold=Math.floor((e_hrsold-hrsold)*60);
seconds=Math.floor((e_minsold-minsold)*60);
span_dt_dt.innerHTML=\"<b><align=center><font color=#00FF00 face=华文新魏 size=4>\"+daysold+\"10\"+hrsold+\"5\"+minsold+\"6\"+seconds+\"5\"+\"</b>
</font>\" ;
}
show_date_time();
//-->
</SCRIPT>
[ 本帖最后由 xiangyeqi 于 2008-4-20 20:32 编辑 ]
xiangyeqi
发表于 2008-4-20 20:29
<font color=#00FF00 face=华文新魏 size=4>离08年劳动节还有:</font>
<span id=\"span_dt_dt\" style=\'align=center no:1px solid \'></span>
<SCRIPT language=javascript>
<!--
//document.write(\"\");
function show_date_time(){
window.setTimeout(\"show_date_time()\", 1000);
BirthDay=new Date(\"5-1-2008\");
today=new Date();
timeold=(BirthDay.getTime()-today.getTime());
sectimeold=timeold/1000
secondsold=Math.floor(sectimeold);
msPerDay=24*60*60*1000
e_daysold=timeold/msPerDay
daysold=Math.floor(e_daysold);
e_hrsold=(e_daysold-daysold)*24;
hrsold=Math.floor(e_hrsold);
e_minsold=(e_hrsold-hrsold)*60;
minsold=Math.floor((e_hrsold-hrsold)*60);
seconds=Math.floor((e_minsold-minsold)*60);
span_dt_dt.innerHTML=\"<b><align=center><font color=#00FF00 face=华文新魏 size=4>\"+10+\"天\"+2+\"小时\"+3+\"分\"+56+\"秒\"+\"</b>
</font>\" ;
}
show_date_time();
//-->
</SCRIPT>
[ 本帖最后由 xiangyeqi 于 2008-4-20 20:34 编辑 ]
黑郁金香
发表于 2008-9-24 21:21
<font color=#00FF00 face=华文新魏 size=4>离08年国庆节节还有:</font> <span id=\"span_dt_dt\" style=\'align=center no:1px solid \'></span> <SCRIPT language=javascript> <!-- //document.write(\"\"); function show_date_time(){ window.setTimeout(\"show_date_time()\", 1000); BirthDay=new Date(\"10-1-2008\") today=new Date(); timeold=(BirthDay.getTime()-today.getTime()); sectimeold=timeold/1000 secondsold=Math.floor(sectimeold); msPerDay=24*60*60*1000 e_daysold=timeold/msPerDay daysold=Math.floor(e_daysold); e_hrsold=(e_daysold-daysold)*24; hrsold=Math.floor(e_hrsold); e_minsold=(e_hrsold-hrsold)*60; minsold=Math.floor((e_hrsold-hrsold)*60); seconds=Math.floor((e_minsold-minsold)*60); span_dt_dt.innerHTML=\"<b><align=center><font color=#00FF00 face=华文新魏 size=4>\"+daysold+\"天\"+hrsold+\"小时\"+minsold+\"分\"+seconds+\"秒\"+\"</b> </font>\" ; } show_date_time(); //--> </SCRIPT>
uf一焰殇
发表于 2008-12-25 17:54
~~~~~~~~~~~
uf一焰殇
发表于 2008-12-25 17:57
我新来的`
这些都不错,
可没有我要的。
我想要的代码是`带秒不走动的时间
能不能给个``拜托了。
我今天摸索了一下午了`
uf一焰殇
发表于 2008-12-25 18:34
<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:35
<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>