Loading ...
Sorry, an error occurred while loading the content.

File - Welcome.html

Expand Messages
  • ibi_edu@yahoogroups.com
    Date Validations var monthNames = new Array(12); monthNames[0] = January ; monthNames[1] =
    Message 1 of 36 , May 4, 2008
    View Source
    • 0 Attachment
      <html>
      <head>
      <title>Date Validations</title>
      <font color="#FFFFFF"></font>
      <script>
      var monthNames = new Array(12);
      monthNames[0] = "January";
      monthNames[1] = "Febrary";
      monthNames[2] = "March";
      monthNames[3] = "April";
      monthNames[4] = "May";
      monthNames[5] = "June";
      monthNames[6] = "July";
      monthNames[7] = "August";
      monthNames[8] = "Septemper";
      monthNames[9] = "October";
      monthNames[10] = "November";
      monthNames[11] = "December";

      var dayNames = new Array(7);
      dayNames[0] = "Sunday";
      dayNames[1] = "Monday";
      dayNames[2] = "Tuesday";
      dayNames[3] = "Wednesday";
      dayNames[4] = "Thursday";
      dayNames[5] = "Friday";
      dayNames[6] = "Saturday";
      function customDateString(m_date)
      {
      var daywords = dayNames[m_date.getDate()];
      var theday = m_date.getDate();
      var themonth = monthNames[m_date.getMonth()];
      var theyear = m_date.getYear()+1900;
      return daywords + " , " + themonth + " " + theday + " , " + theyear;
      }
      </script>
      </head>
      <body bgcolor="#0000FF">

      <h1>
      WELCOME!</h1>
      <script>
      document.write(customDateString( new Date()))

      </script>
      </body>
      </html>
    • ibi_edu@yahoogroups.com
      Date Validations var monthNames = new Array(12); monthNames[0] = January ; monthNames[1] =
      Message 36 of 36 , Nov 16, 2008
      View Source
      • 0 Attachment
        <html>
        <head>
        <title>Date Validations</title>
        <font color="#FFFFFF"></font>
        <script>
        var monthNames = new Array(12);
        monthNames[0] = "January";
        monthNames[1] = "Febrary";
        monthNames[2] = "March";
        monthNames[3] = "April";
        monthNames[4] = "May";
        monthNames[5] = "June";
        monthNames[6] = "July";
        monthNames[7] = "August";
        monthNames[8] = "Septemper";
        monthNames[9] = "October";
        monthNames[10] = "November";
        monthNames[11] = "December";

        var dayNames = new Array(7);
        dayNames[0] = "Sunday";
        dayNames[1] = "Monday";
        dayNames[2] = "Tuesday";
        dayNames[3] = "Wednesday";
        dayNames[4] = "Thursday";
        dayNames[5] = "Friday";
        dayNames[6] = "Saturday";
        function customDateString(m_date)
        {
        var daywords = dayNames[m_date.getDate()];
        var theday = m_date.getDate();
        var themonth = monthNames[m_date.getMonth()];
        var theyear = m_date.getYear()+1900;
        return daywords + " , " + themonth + " " + theday + " , " + theyear;
        }
        </script>
        </head>
        <body bgcolor="#0000FF">

        <h1>
        WELCOME!</h1>
        <script>
        document.write(customDateString( new Date()))

        </script>
        </body>
        </html>
      Your message has been successfully submitted and would be delivered to recipients shortly.