Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    23
    Member #
    25361
    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.

  2.  


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:08 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com