º» ¿¹Á¦ÀÇ ÀÚ¹Ù½ºÅ©¸³Æ®ÀÔ´Ï´Ù.
<html> <head> <title>http://www.happycgi.com</title> </HEAD>
<BODY>
<script> <!-- var new_Date=new Date() var DOM=new_Date.getDate() var Year=new_Date.getFullYear() var LongMonth = new Array("01¿ù","02¿ù","03¿ù","04¿ù","05¿ù","06¿ù","07¿ù","08¿ù","09¿ù","10¿ù","11¿ù","12¿ù") var LongDay = new Array("ÀÏ","¿ù","È","¼ö","¸ñ","±Ý","Åä") var setTimer = 5000;
function find13th() { var Start = startyear.value var End = endyear.value var TooMuch = End-Start if (confirm("Caution, this may result in an extremely large result, and may take a long time to display those results.")) if (End < Start) //if end<start alert user, else alert("Sorry, the ending year must be greater than or equal to the beginning year..") else { //allow dates and continue var BasicHTML = "<B>°Ë»ö°á°ú!!</B>" for (YearTest=Start;YearTest<=End;YearTest++) { if (MonthSelect.value==20) { for (MonthTest=0;MonthTest<=11;MonthTest++) { var TestDate = new Date(YearTest,MonthTest,13) if (TestDate.getDay()==5) // BasicHTML = BasicHTML+"<br>"+LongMonth[MonthTest]+" "+TestDate.getDate()+", "+YearTest BasicHTML = BasicHTML+"<br>"+YearTest+"³â, "+LongMonth[MonthTest]+" "+TestDate.getDate()+"ÀÏ" } } else { var TestDate = new Date(YearTest,MonthSelect.value,13) if (TestDate.getDay()==5) BasicHTML = BasicHTML+"<br>"+YearTest+"³â, "+LongMonth[MonthSelect.value]+" "+TestDate.getDate()+"ÀÏ" } } document.all["InternalDiv"].innerHTML = BasicHTML; } else { alert("Please make the years closer together..") } }
function clearResults() { var BasicHTML = "<B>°Ë»ö°á°ú!!</B>" document.all["InternalDiv"].innerHTML = BasicHTML; } //--> </script>
<B>°Ë»ö±â°£ :</B><br> <B>½ÃÀ۳⵵ :</B> <input type="Text" size="5" maxlength="4" name="startyear" value="2005"> ~ <B>¸¶Áö¸·³âµµ : </b> <input type="Text" size="5" maxlength="4" name="endyear" value="2010">
<select NAME="MonthSelect" size="1"> <option VALUE ="20" SELECTED>ƯÁ¤ ¿ù(êÅ)À» ÁöÁ¤</option> <option value="0">1¿ù</option> <option value="1">2¿ù</option> <option value="2">3¿ù</option> <option value="3">4¿ù</option> <option value="4">5¿ù</option> <option value="5">6¿ù</option> <option value="6">7¿ù</option> <option value="7">8¿ù</option> <option value="8">9¿ù</option> <option value="9">10¿ù</option> <option value="10">11¿ù</option> <option value="11">12¿ù</option> </select>
<br><br> <input type="Button" value="°Ë»ö" onmouseup="find13th()"><input type="Button" value="RESET" onmouseup="clearResults()">
<p> <table cellpadding=8 bgcolor=999999 cellspacing=1 width=180> <td bgcolor=white><layer id="Layer1"><div id="InternalDiv"></div></layer></td> </table>
|