by Waqas Tariq (1 Submission)
Category: Internet/HTML
Compatability: VB Script
Difficulty: Unknown Difficulty
Originally Published: Mon 5th November 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
A VB Script Code that wishes the visitor with "Good Morning...!" ,"Good Night...!" ,etc... according to the time, when web page is loaded and
<HEAD>
<Script Language="VBScript">
Sub Window_OnLoad()
If Time() < 0.5 Then
Alert "Good Morning Visitor...!"
ElseIf Time >= 0.5 And Time < 0.75 Then
Alert "Good Afternoon Visitor...!"
ElseIf Time > 0.75 Then
Alert "Good Evening Visitor...!"
End IF
End Sub
Sub Window_OnBeforeUnLoad()
If Time() < 0.5 Then
Alert "Have a good day"
ElseIf Time >= 0.5 And Time < 0.75 Then
Alert "Good Bye..."
ElseIf Time > 0.75 Then
Alert "Good Night..."
End IF
End Sub
</Script>
</HEAD>
<BODY>
Hello...Wishes From "WAQAS TARIQ"
</BODY>
</HTML>
No comments have been posted about A VB Script Code that wishes the visitor with Good Morning...! ,Good Night...! ,etc... accordin. Why not be the first to post a comment about A VB Script Code that wishes the visitor with Good Morning...! ,Good Night...! ,etc... accordin.