Skype show number depending on Time of day
Hello,
More and more are using skype, I feel some want to show a mobile phone number on there websites but only during working hours. thus it would be nice to have an extension that will show a skype/phone number depending on the hour of day in the country one is.
I can expand on this if needed be
cheers
kenny
Hello,
More and more are using skype, I feel some want to show a mobile phone number on there websites but only during working hours. thus it would be nice to have an extension that will show a skype/phone number depending on the hour of day in the country one is.
I can expand on this if needed be
cheers
kenny
Comments
Show based on time of day
I am not sure you really would need to go as far as an extension, it is relatively easy to show content based on the time or period of time of a day, using DatePart.
The varibles for DatePart are
DatePart("h", Now())
would give you the current hour, so you would then simply use an IF statement to say if the hour was between lets say 9 and 5 show.
For example:
Dim varCurrenthour
varCurrenthour=DatePart("h", Now())
If varCurrenthour >=9 AND varCurrenthour <17 Then Response.Write("Mobile: 01245 786544")
DatePart examples at W3School/MS
Also, check out http://www.w3schools.com/VBscript/func_datepart.asp and http://msdn.microsoft.com/en-us/library/aa262714.aspx
You must me logged in to write a comment.