Date Lookup Plugin

Source: Internet
Author: User

<title> Date Lookup Plugin </title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<!-------------------------------->
<body bgcolor= "#fef4d9" onload= "Sety ()" >
<script language= "JavaScript" >
<!--Begin
var months = new Array ("January", "February", "March", "April", "may", "June", "July", "August", "September", "October", " November "," December ");
var days = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var mtend = new Array (31,28,31,30,31,30,31,31,30,31,30,31);
var opt = new Array ("Past Time", "Future Time");
function Getdateinfo () {
var y = document.form.year.value;
var m = document.form.month.options[document.form.month.options.selectedindex].value;
var d = document.form.day.options[document.form.day.options.selectedindex].value;
var hlpr = mtend[m];
if (d < mtend[m] + 1) {
if (m = = 1 && y% 4 = = 0) {hlpr++;}
var c = new Date (y,m,d);
var dayOfWeek = C.getday ();
Document.form.dw.value = Days[dayofweek];
if (C.gettime () > New Date (). GetTime ()) {
Document.form.time.value = opt[1];
}
else {
Document.form.time.value = opt[0];
}
}
else {
Alert ("This Day" +months[m]+ "+d+", "+y+" does not exist. \ n Please re-select. ");
}
}
function Sety () {
var y = new Date (). GetYear ();
if (y < x) y + = 1900;
Document.form.year.value = y;
}
End-To
</script>
<form name= "Form" >
<p> <select name= "Day" size= "1" >
<option selected value= "1" >1</option>
<option value= "2" >2</option>
<option value= "3" >3</option>
<option value= "4" >4</option>
<option value= "5" >5</option>
<option value= "6" >6</option>
<option value= "7" >7</option>
<option value= "8" >8</option>
<option value= "9" >9</option>
<option value= "Ten" >10</option>
<option value= "One" >11</option>
<option value= ">12</option>"
<option value= ">13</option>"
<option value= ">14</option>"
<option value= ">15</option>"
<option value= ">16</option>"
<option value= ">17</option>"
<option value= ">18</option>"
<option value= ">19</option>"
<option value= ">20</option>"
<option value= ">21</option>"
<option value= ">22</option>"
<option value= ">23</option>"
<option value= ">24</option>"
<option value= ">25</option>"
<option value= ">26</option>"
<option value= ">27</option>"
<option value= ">28</option>"
<option value= ">29</option>"
<option value= ">30</option>"
<option value= ">31</option>"
</select> month <select name= "month" size= "1" >
<option selected value= "0" >January</option>
<option value= "1" >february </option>
<option value= "2" >march </option>
<option value= "3" >april </option>
<option value= "4" >may </option>
<option value= "5" >june </option>
<option value= "6" >july </option>
<option value= "7" >august </option>
<option value= "8" >september </option>
<option value= "9" >october </option>
<option value= "Ten" >november </option>
<option value= "one" >december </option>
</select> <input type= "text" name= "Year" size= "4" > <input type= "button"
Value= "Look at the information for this day" Name= "GDI" onclick= "Getdateinfo ()" ></p>
<p> here is the day of the week: <input type= "text" name= "DW" size= "one" > Time State: <input type= "Text"
Name= "Time" size= "ten" ></p>
</form>
<div> Paris Pick-up Network (www.balijieji.com) Edit Collection offers </div>
</body>

Date Lookup Plugin

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.