W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<html> <head> <script type="text/vbscript"> function greeting() 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 end function </script> </head> <body onload="greeting()"> </body> </html>