源代码 :
点击运行
<!DOCTYPE html> <html> <body> <script type="text/vbscript"> i=hour(time) If i < 10 Then document.write("Good morning!") Else document.write("Have a nice day!") End If </script> </body> </html>
运行结果