第一种: 2006年5月10日 12:05:08 星期三
第二钟 :2006年5月10日
第三种 :2010年9月30日 星期四
第四种:现在时间是:2010-09-30 10:38:57
<div id="jnkc">
</div>
<script>setInterval("jnkc.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());",1000);
</script>
</div>
<script>setInterval("jnkc.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());",1000);
</script>
第二钟 :2006年5月10日
<script language="JavaScript">
<!--
tmpDate = new Date();
date = tmpDate.getDate();
month= tmpDate.getMonth() + 1 ;
year= tmpDate.getYear();
document.write(year);
document.write("年");
document.write(month);
document.write("月");
document.write(date);
document.write("日");
// -->
</script>
<!--
tmpDate = new Date();
date = tmpDate.getDate();
month= tmpDate.getMonth() + 1 ;
year= tmpDate.getYear();
document.write(year);
document.write("年");
document.write(month);
document.write("月");
document.write(date);
document.write("日");
// -->
</script>
第三种 :2010年9月30日 星期四
<!-- 时间代码开始 2005-11-11 星期几 -->
<SCRIPT language=JavaScript>
today=new Date();
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i]}
var d=new initArray("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
document.write("<font color=#0099ff> ",today.getYear(),"年",today.getMonth()+1,"月",today.getDate(),"日 ",d[today.getDay()+1],"</font>" );
</SCRIPT>
<!-- 时间代码结束 2005-11-11 星期几 -->
<SCRIPT language=JavaScript>
today=new Date();
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i]}
var d=new initArray("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
document.write("<font color=#0099ff> ",today.getYear(),"年",today.getMonth()+1,"月",today.getDate(),"日 ",d[today.getDay()+1],"</font>" );
</SCRIPT>
<!-- 时间代码结束 2005-11-11 星期几 -->
第四种:现在时间是:2010-09-30 10:38:57
<div id="time" align="center">time</div>
<script language="javascript">
function time1()
{
var now,n,y,r,h,m,s;
now=new Date();
n = now.getYear();
y = now.getMonth()+1;
r = now.getDate();
h = now.getHours();
m =now.getMinutes();
s = now.getSeconds();
if(y<10) y="0"+y;
if(r<10) r="0"+r;
if(h<10) h="0"+h;
if(m<10) m="0"+m;
if(s<10) s="0"+s;
document.getElementById("time").innerHTML="现在时间是:"+ n + "-" + y + "-" + r + " "+ h + ":" + m + ":" + s;
setTimeout("time1();", 1000);
}
time1();
</script>
<script language="javascript">
function time1()
{
var now,n,y,r,h,m,s;
now=new Date();
n = now.getYear();
y = now.getMonth()+1;
r = now.getDate();
h = now.getHours();
m =now.getMinutes();
s = now.getSeconds();
if(y<10) y="0"+y;
if(r<10) r="0"+r;
if(h<10) h="0"+h;
if(m<10) m="0"+m;
if(s<10) s="0"+s;
document.getElementById("time").innerHTML="现在时间是:"+ n + "-" + y + "-" + r + " "+ h + ":" + m + ":" + s;
setTimeout("time1();", 1000);
}
time1();
</script>
《通天塔》内容概况
小妤又有新照片啦




