<Style> Input {font-family: verdana; font-size: 9pt; text-decoration: none; background-color: # FFFFFF; height: 20px; border: 1px solid #666666; color: #000000 ;}. calendar {font-family: verdana; text-decoration: none; width: 170; background-color: # C0D0E8; font-size: 9pt; border: 0px dotted #1C6FA5 ;}. calendarTD {font-family: verdana; font-size: 7pt; color: #000000; background-color: # f6f6f6; height: 20px; width: 11%; text-align: center ;}. title {font-family: verdana; font-size: 11pt; font-weight: normal; height: 24px; text-align: center; color: #333333; text-decoration: none; background-color: # A4B9D7; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-bottom-style: 1px; border-top-color: #999999; border-right-color: #999999; border-bottom-color: #999999; border-left-color: #999999 ;}. day {font-family: verdana; font-size: 7pt; color: #243F65; background-color: # E5E9F2; height: 20px; width: 11%; text-align: center ;}. daySat {font-family: verdana; font-size: 7pt; color: # FF0000; text-decoration: none; background-color: # E5E9F2; text-align: center; height: 18px; width: 12% ;}. daySun {font-family: verdana; font-size: 7pt; color: # FF0000; text-decoration: none; background-color: # E5E9F2; text-align: center; height: 18px; width: 12% ;}. dayNow {font-family: verdana; font-size: 7pt; font-weight: bold; color: #000000; background-color: # FFFFFF; height: 20px; text-align: center ;}. dayTitle {font-family: verdana; font-size: 9pt; color: #000000; background-color: # C0D0E8; height: 20px; width: 11%; text-align: center ;}. daySatTitle {font-family: verdana; font-size: 9pt; color: # FF0000; text-decoration: none; background-color: # C0D0E8; text-align: center; height: 20px; width: 12% ;}. daySunTitle {font-family: verdana; font-size: 9pt; color: # FF0000; text-decoration: none; background-color: # C0D0E8; text-align: center; height: 20px; width: 12% ;}. dayButton {font-family: Webdings; font-size: 9pt; font-weight: bold; color: #243F65; cursor: hand; text-decoration: none ;} </Style> <table border = "0" cellpadding = "0" cellspacing = "1" class = "Calendar" id = "caltable"> <thead> <tr align =" center "valign =" middle "> <td colspan =" 7 "class =" Title "> 3 <input name =" year "type =" text "size =" 4 "maxlength = "4" onkeydown = "if (event. keyCode = 13) {setDate ()} "onkeyup =" this. value = this. value. replace (/[^ 0-9]/g, '')" onpaste = "this. value = this. value. replace (/[^ 0-9]/g ,'') "> year <input name =" month "type =" text "size =" 1 "maxlength =" 2 "onkeydown =" if (event. keyCode = 13) {setDate ()} "onkeyup =" this. value = this. value. replace (/[^ 0-9]/g, '')" onpaste = "this. value = this. value. replace (/[^ 0-9]/g ,'') "> month 4 </td> </tr> <tr align =" center "valign =" middle "> </TR> </thead> <TBODY border = 1 cellspacing = "0" cellpadding = "0" ID = "calendar" ALIGN = center onclick = "getDiary () "> </TBODY> </TABLE>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]