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]);
}
}}
熱點內容