Tuesday, 28 February 2012

if else if code


<html>

<head>
<script type="text/vbscript">
Function person()
i=hour(time)
If i = 5 Then
document.write("Good")
ElseIf i = 12 Then
document.write("Bad")
ElseIf i = 13 Then
document.write("nice")
ElseIf i = 14 Then
document.write("very nice")
Else
document.write("Unknown")
End If
End Function
</script>
</head>

<body onload="person()">
</body>

</html>

No comments:

Post a Comment