網頁語法
內有許多許多語法給大家,
令你們的網頁加添動畫及特技!!

日期時間顯示
【請先把下面的HTML碼複製貼到你的<記事本>��,再複製貼到你網頁原始檔中 】把下面的HTML碼複製至
<body>下
<script language="JavaScript">
<!-- Hide this script from old browsers --
/*
This script came from the 24 hour JavaScripts Site
located at http://www.javascripts.com. It is brought to
you by Eric Jarvies, Lewis Sellers, Giuseppe Lombardo,
Kurt Anderson, and David Medinets.
*/
Stamp = new Date();
document.write('<font size="2" face="Arial,Geneva,Sans Serif"><B>'
+ (Stamp.getMonth() + 1) +"/"+Stamp.getDate()+ "/"+Stamp.getYear()
+ '</B></font><BR>');
var Hours;
var Mins;
var Time;
Hours = Stamp.getHours();
if (Hours >= 12) {
Time = " P.M.";
}
else {
Time = " A.M.";
}
if (Hours > 12) {
Hours -= 12;
}
if (Hours == 0) {
Hours = 12;
}
Mins = Stamp.getMinutes();
if (Mins < 10) {
Mins = "0" + Mins;
}
document.write('<font size="2" face="Arial,Geneva,Sans
Serif"><B>' + Hours + ":" + Mins + Time + '</B></font>');
// -- End Hiding Here -->
</script>