[tt]
How can I add a sound (.wav) file to this code ?
<SCRIPT language="vbscript">
Function DoWelcome()
Dim myHour
Dim myGreet
myHour = Hour(Now)
If myHour >= 0 and myHour < 12 Then
myGreet = "Good Morning!" Sound1.wav here that would say of course Good Morning.
ElseIf myHour >= 12 and myHour < 18 Then
myGreet = "Good Afternoon!"Sound2.wav herethat would say of course Good Afternoon
Else
myGreet = "Good Evening! "Sound3.wav herethat would say of course Good Evening
End If
DoWelcome = myGreet
End Function
Document.Write DoWelcome
</SCRIPT>
[tt]"A Successful man is one who can build a firm foundation with the bricks that others throw at him"[/tt]
![[noevil] [noevil] [noevil]](/data/assets/smilies/noevil.gif)
![[noevil] [noevil] [noevil]](/data/assets/smilies/noevil.gif)