Trio ȨÆäÀÌÁö ¿äÀϸ¶´Ù ´Ù¸¥ ¹è°æ»ö°ú ±ÛÀÚ»ö ¸¸µå´Â ¿¹Á¦ Javascript ¿¹Á¦ ¸ÞÀÎÆäÀÌÁö
³â ¿ù ÀÏÀº
HTML Code
<head> .. <script Language="Javascript"> <!-- °¨Ãã var weeks = 'ÀÏ¿ùÈ­¼ö¸ñ±ÝÅä'; var bgcolors='ffeeff/eeffee/ffffee/eeffff/ffeeee/eeeeff/eeeeee'; var txcolors='00ff00/880088/888800/008888/880000/000088/000000'; function showday(){ mydate=new Date(); mydate.setYear(self.fname.yy.value); mydate.setMonth(self.fname.mm.value-1); mydate.setDate(self.fname.dd.value); wkdy=mydate.getDay(); wkday=weeks.substring(wkdy,wkdy+1); bgcolor=bgcolors.substring((wkdy*7),(wkdy*7)+6); txcolor=txcolors.substring((wkdy*7),(wkdy*7)+6); title='¿äÀϸ¶´Ù ´Ù¸¥ ¹è°æ»ö°ú ±ÛÀÚ»ö ¸¸µå´Â ¿¹Á¦'; newWinj=window.open('','child','scrollbars=yes,resizable=yes,width=400,height=450'); newWinj.document.write('<html><head><title>'+title+'</title></head>'); newWinj.document.write('<body text='+txcolor +' bgcolor='+bgcolor+'><b>'+title+'</b><br>'); newWinj.document.write(mydate.getYear()+'³â '+(mydate.getMonth()+1)+'¿ù ') newWinj.document.write(mydate.getDate()+'ÀÏ´Â ') newWinj.document.write(weeks.substring(mydate.getDay(),mydate.getDay()+1)+'¿äÀÏ['); newWinj.document.write(wkdy+']<br> ¹è°æ»ö=['+bgcolor+'] ±ÛÀÚ»ö=[' + bgcolor + ']') newWinj.document.write('<form><input type=button value="´Ý±â" onclick="self.close()"></form>') } // °¨Ãã ³¡ --> </script> </head> <body> .. <form name="fname" type="post"> <input type="text" name="yy" size="4" value="2000"> ³â <input type="text" name="mm" size="2" value="01"> ¿ù <input type="text" name="dd" size="2" value="01"> ÀÏÀº <input type="button" name=submit value="È®ÀÎ" onclick="showday()"> <input type="button" name="result" value="´Ù½Ã"> </form> .. </body>

¹ø¿ª¹® ¼ÒÀ¯ÀÚ - Trio ȨÆäÀÌÁö Á¦°ø ÀÌ ¹®¼­(http://trio.co.kr/webrefer/jsex/xdaybg.html)´Â
ÀÚÀ¯·ÎÀÌ ¿¬°á »ç¿ëÀÌ °¡´ÉÇÔ.
¿¹Á¦ ¸Þ´º·Î