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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JS Timing Script help

Status
Not open for further replies.

amarilopollo

Technical User
Oct 19, 2007
2
US
Hi All,

I need a javascript that will load a specific .html file at different times of the day. I have been using one html file and just changing it manually during the hours I need them changed, but am getting tired of that.

I remember doing this in school but it's been a while since I've touched javascript.

Any help on the matter would be greatly appreciated. Also if you know an easier way of doing timing scripts outside of javascript, I will gladly consider it.

Thanks.
 
I agree serverside coding would probably be better, however I'm not as comfortable with php, nor do I know my server's php capabilities.

If that is simple I would try it, however using timezones should be just enough. The website is mostly for people in the local area.
 
Well, googling for javascript content time of day gave me this link. I would think you could modify it to do a redirect to the correct page or to use AJAX to pull the content in.

Keep in mind that some users may not have JavaScript enabled, so you should have a default generic page to display for those users.

Adam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top