Day of the week page load

I'm wanting to develop a site that will list a specific page depending on the day of the week.  The specific pages will be displayed in a frameset.

Anyone know of a script or something that would make this possible?


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


select case whatweekday
case vbSunday
response.redirect "http://url/sunday.htm"
case vbMonday
response.redirect "http://url/monday.htm"
case vbTuesday
response.redirect "http://url/tuesday.htm"
case vbWednesday
end select

I have not looked at how this needs to be modified for a frameset.

REMEMBER: This code will run on the server, and hence will work according to the server's clock.  Therefore, users in other time zones may see messages for the previous or the next day depending on the time of day and the time zone difference.  If you need it to use the user's time zone then you either need to write script which runs on the user's browser - which means that your users must have certain levels of browsers - or it may be possible to interrogate the browser to find out what the user's local time and day may be.



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MandakaAuthor Commented:
Ahhh...using ASP.  Didn't even think of that....GOOD CALL!!!

Thanks Peter!

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.