發新話題
打印

一星期七日顯示語

一星期七日顯示語

<script language="JavaScript">
now = new Date()
if (now.getDay() == 5)
document.write("終於捱到星期五")

if (now.getDay() == 6)
document.write("有局無局禮拜六")

if (now.getDay() == 0)

document.write("星期日可以訓晏D,唔使一早醒")

if (now.getDay() == 1)
document.write("星期一假期後遺症")

if (now.getDay() == 2)
document.write("星期二返工等收工")

if (now.getDay() == 3)
document.write("星期三有排無假放")

if (now.getDay() == 4)
document.write("星期四無心工作等放假")
// -->
</script>

 

 

星期一至日展現文字可以隨意更改

 

 

如不能顯示語法效果可貼去本站語法測試板試看



我唔係人.........

TOP

複製上列語法



我唔係人.........

TOP