24小时运行js脚本
发布时间: 2024-06-25 11:31:43
㈠ 姹24灏忔椂镞堕棿JS浠g爜
<scriptlanguage="javascript">
<!--
//浠ヤ笅鏄鎻愮ず鏄剧ず
functionshowclock()
{
varoutStr="";
vardate=newDate();
varhour=date.getHours();
varmin_=date.getMinutes();
varsec=date.getSeconds();
varcol=":";
varspc="";
//镞跺垎绉掑皬浜10镄勬椂鍊椤湪鍓嶉溃娣诲姞涓0
if(hour<10)hour="0"+hour;
if(min_<10)min_="0"+min_;
if(sec<10)sec="0"+sec;
outStr=hour+col+min_+col+sec+spc;
document.getElementById("clock").innerHTML=outStr;
}
setInterval("showclock()",1000);
document.write('<spanid="clock"></span>');
//-->
</script>
㈡ 涓涓猨s寮圭獥浠g爜锛屽备綍璁╀粬涓澶24灏忔椂鍙寮2娆℃垨钥1娆★纴璋㈣阿
}
}public void converse(long l) {
String s = Long.toString char (l); [] ch = s.toCharArray(); for(int i=ch.length-1; i>=0; i--) {
System.out.print(ch[i]);
}
}}
热点内容