|
主题:遇到难题了.....有谁会??(已解决) [收藏主题] | 转到: |
<html>
<body> 现在的值班人员是: <script language="javaScript"> <!-- now = new Date(),hour = now.getHours() if(hour < 6){document.write("张三")} else if (hour < 9){document.write("李四")} else if (hour < 12){document.write("王五")} else if (hour < 14){document.write("贾六")} else if (hour < 17){document.write("吴七")} else if (hour < 19){document.write("向八")} else if (hour < 22){document.write("龙九")} else {document.write("魏十")} // --> </script> </body> </html> |
|
支持(0) | 反对(0) 顶端 底部 |
<上一主题 | 下一主题 > |