编辑下面的代码:【加编码】
<html> <body> <script type="text/vbscript"> i=hour(time) If i = 10 Then document.write("Just started...!") ElseIf i = 11 Then document.write("Hungry!") ElseIf i = 12 Then document.write("Ah, lunch-time!") ElseIf i = 16 Then document.write("Time to go home!") Else document.write("Unknown") End If </script> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂