Top 10 Daily Top Selling Deals - Official TigerDirect.com Deals

Error loading feed.

Official TigerDirect.com Coupons

Error loading feed.

Official TigerDirect.com Coupons

Error loading feed.

Tuesday, March 1, 2011

Please help me the script code to redirect user to another page based on day...


Hi,

Please i have wrote this code which is working good..here is it

<script type="text/javascript">
var dateobj=new Date()
var today=dateobj.getDay()
switch(today){
case 1:
window.location="monday.htm"
break
case 2:
window.location="http://www.clickbank.com"
break
case 3:
window.location="wednesday.htm"
break
case 4:
window.location="thursday.htm"
break
case 5:
window.location="friday.htm"
break
case 6:
window.location="saturday.htm"
break
case 0:
window.location="sunday.htm"
break
}
</script>

But please i want the code to behave like.....to create a redirection script based on day of the week.
that reads the date of a day in one textbox, the month in a second textbox and the year in a third textbox. After submitting the form, it should display the complete date, including the correct extension on the day number ('st', 'nd', 'rd' or 'th'). Example : 2 April 1999 will produce: 'Today is 2nd of April, 1999.'


Please that is what i want to come out with but i have try many code which i am not getting.
Help me please.

Thank you.
Clement Osei.

No comments:

Post a Comment