Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time specific text

Status
Not open for further replies.

secros

Programmer
Dec 5, 2001
1
US
I'm trying to create a script that switches text based on the day of the week and the time of the day. Any ideas on how to start such a script?
 
Make an array of the text's you want to display.
Create a Date object.
The getDay, getHours, and getMinutes methods will be useful.
Use lots of logic-related statements.
Write to document as needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top