| 发表于:2007-04-12 16:00:103楼 得分:0 |
有点多 分几次发给你 ------------------------------------------------------------------- <script> //====================================================================== // cudigital cucalendar script // version 1.0 code by edison1024.(mciro1024@163.com) // copyright(c)2004-2008 cudigital co,ltd. all rights reserved. //======================================================================= if(typeof(cucalendar_state) != "object ") var cucalendar_state = new object(); function cucalendar(calendarid) { cucalendar_state[calendarid] = this; this.id = calendarid; this.minyear = 1900; this.maxyear = 2100; this.width = 170; this.height = 200; this.dateformat = " <yyyy> - <mm> - <dd> "; this.source = null; this.target = null; this.unselectbgcolor = " "; this.maincolor = "#ff0000 "; this.shadow = "#666666 "; this.alpha = "100 "; this.selectedcolor = "#ffffff "; this.daybdwidth = "1 "; this.daybdcolor = this.unselectbgcolor; this.todaybdcolor = "#000000 "; this.invalidcolor = "#808080 "; this.validcolor = "#000099 "; this.weekendbgcolor = this.unselectbgcolor; this.weekendcolor = "#006600 "; this.yearliststyle = "font-size:12px; font-family:宋体; "; this.monthliststyle = "font-size:12px; font-family:宋体; "; this.titlestyle = "cursor:default; height:24px; color:#000000; background-color: " + this.unselectbgcolor + "; font-size:12px; text-align:center; vertical-align:bottom; "; this.footeroverstyle = "height:20px; cursor:hand; color:#000000; background-color:#999999; font-size:12px; font-family:verdana; text-align:center; vertical-align:middle; "; this.footerstyle = "height:20px; cursor:hand; color:#ffffff; background-color:#333333; font-size:12px; font-family:verdana; text-align:center; vertical-align:middle; "; this.todaytitle = "今天: "; this.linebgstyle = "height:6px; background-color: " + this.unselectbgcolor + "; text-align:center; vertical-align:middle; "; this.linestyle = "width:94%; height:1px; background-color:#000000; "; this.daystyle = "cursor:hand; font-size:12px; font-family:verdana; text-align:center; vertical-align:middle; "; this.overdaystyle = "this.style.textdecoration= 'underline '; "; this.outdaystyle = "this.style.textdecoration= 'none '; "; this.monthname = new array( "1月 ", "2月 ", "3月 ", "4月 ", "5月 ", "6月 ", "7月 ", "8月 ", "9月 ", "10月 ", "11月 ", "12月 "); this.weekname = new array( "日 ", "一 ", "二 ", "三 ", "四 ", "五 ", "六 "); this.boolcalendarpadexist = false; this.createcalendarpad = function() { this.boolcalendarpadexist = true; var thevalue = this.source.value; var thecurrentdate = new date(this.gettextdate(thevalue)); if (isnan(thecurrentdate)) { thecurrentdate = new date(); } var calendarpadhtml = " "; calendarpadhtml += " <div id=\ " " + this.id + "_calendarpad\ " style=\ "z-index: 201; position: absolute;top:-100;left:-100; "; if(this.shadow != " ") { calendarpadhtml += "filter:progid:dximagetransform.microsoft.shadow(direction=135,color= " + this.shadow + ",strength=3); "; } if(this.alpha != "100 " && this.alpha != " ") { calendarpadhtml += "filter: progid:dximagetransform.microsoft.alpha( style=0,opacity= " + this.alpha + "); "; } calendarpadhtml += " \ "> "; calendarpadhtml += " <iframe frameborder=0 width=\ " " + (this.width+2).tostring() + "\ " height=\ " " + (this.height+2).tostring() + "\ "> </iframe> "; calendarpadhtml += " <div style=\ "z-index:202;position:absolute;top:0;left:0;\ "> <table width=\ " " + this.width.tostring() + "\ " height=\ " " + this.height.tostring() + "\ " border=\ "0\ " cellspacing=\ "0\ " cellpadding=\ "0\ "> <tr> <td align=\ "center\ " style=\ "font-size:24px;font-family:arial black;color:#e6e6e6\ "> cudigital </td> </tr> </table> </div> "; calendarpadhtml += " <div style=\ "z-index:203;position:absolute;top:0;left:0;border:1px solid #000000;\ " onclick=\ "cucalendar_getcalendarbyid( ' " + this.id + " ').source.select()\ "> "; calendarpadhtml += " <table width=\ " " + this.width.tostring() + "\ " height=\ " " + this.height.tostring() + "\ " cellpadding=\ "0\ " cellspacing=\ "0\ "> "; calendarpadhtml += " <tr> "; calendarpadhtml += " <td align=\ "center\ " valign=\ "top\ "> "; calendarpadhtml += " <table width=\ "100%\ " height=\ "100%\ " border=\ "0\ " cellspacing=\ "0\ " cellpadding=\ "0\ "> "; calendarpadhtml += " <tr align=\ "center\ " style=\ "height:30px; background-color: " + this.maincolor + ";\ "> "; calendarpadhtml += " <td align=\ "center\ "> "; calendarpadhtml += " <table border=\ "0\ " cellspacing=\ "0\ " cellpadding=\ "3\ "> "; calendarpadhtml += " <tr> "; calendarpadhtml += " <td align=\ "center\ "> "; calendarpadhtml += " <input type=\ "button\ " tabindex=\ "-1\ " style=\ "font-family:marlett; cursor:hand; font-size:12px;width:14px;height:18px;border:1px solid #eeeeee;color:#eeeeee;background-color: " + this.maincolor + ";\ " id=\ " " + this.id + "_gopreviousmonth\ " value=\ "3\ " onclick=\ "cucalendar_getcalendarbyid( ' " + this.id + " ').updatecalendargrid(this)\ " onmouseover=\ "this.style.csstext= 'border:1px solid #ffffff;color:#ffffff;font-family:marlett; cursor:hand; font-size:12px;width:14px;height:18px;background-color: " + this.maincolor + "; '\ " onmouseout=\ "this.style.csstext= 'font-family:marlett; cursor:hand; font-size:12px;width:14px;height:18px;border:1px solid #eeeeee;color:#eeeeee;background-color: " + this.maincolor + "; '\ "> "; calendarpadhtml += " </td> "; calendarpadhtml += " <td align=\ "center\ "> "; calendarpadhtml += " <select id=\ " " + this.id + "_yearlist\ "> "; calendarpadhtml += " </select> "; calendarpadhtml += " </td> "; calendarpadhtml += " <td align=\ "center\ "> "; calendarpadhtml += " <select id=\ " " + this.id + "_monthlist\ "> "; calendarpadhtml += " </select> "; calendarpadhtml += " <input type=\ "hidden\ " id=\ " " + this.id + "_daylist\ " value=\ "1\ "> "; calendarpadhtml += " </td> "; calendarpadhtml += " <td align=\ "center\ "> "; calendarpadhtml += " <input type=\ "button\ " tabindex=\ "-1\ " style=\ "font-family:marlett; cursor:hand; font-size:12px;width:14px;height:18px;border:1px solid #eeeeee;color:#eeeeee;background-color: " + this.maincolor + ";\ " id=\ " " + this.id + "_gonextmonth\ " value=\ "4\ " onclick=\ "cucalendar_getcalendarbyid( ' " + this.id + " ').updatecalendargrid(this)\ " onmouseover=\ "this.style.csstext= 'border:1px solid #ffffff;color:#ffffff;font-family:marlett; cursor:hand; font-size:12px;width:14px;height:18px;background-color: " + this.maincolor + "; '\ " onmouseout=\ "this.style.csstext= 'font-family:marlett; cursor:hand; font-size:12px;width:14px;height:18px;border:1px solid #eeeeee;color:#eeeeee;background-color: " + this.maincolor + "; '\ "> "; calendarpadhtml += " </td> "; calendarpadhtml += " </tr> "; calendarpadhtml += " </table> "; | | |
|