日期:2014-05-17 浏览次数:20763 次
...... scheduler.setLoadMode("year"); ......
------解决方案--------------------
上网搜一下吧!网上很多
------解决方案--------------------
是呀这个自已写太累了,网上有好多现成的
------解决方案--------------------
红的那个是什么意思?
------解决方案--------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> <style type="text/css"> html,body{ font-size:12px; font-family:"Courier New", Courier, monospace; margin:0px; padding:0px;} #calendar{margin:50px;width:150px;font-size:12px;} #calendar table{ border-collapse:collapse;} #calendar table td{ height:20px; width:20px; border:1px solid #ff6600; text-align:center;} #calendar .calendarTitle table .threetd{ width:62px;} #calendar .calendarTitle table .twotd{ width:41px;} #calendar .calendarTitle table td{ border-bottom:0px;} .classOver{ background:#000000; color:#FFFFFF;} .yearContainer{background:#ffffff;border:1px solid #ff6600;position:absolute;width:62px;} .yearContainer ul{list-style:none;margin:0px;padding:0px;} .yearContainer ul li{height:18px;line-height:18px;display:block;text-align:center;} .monthContainer{background:#ffffff;border:1px solid #ff6600;position:absolute;width:41px;} .monthContainer ul{list-style:none;margin:0px;padding:0px;} .monthContainer ul li{height:18px;line-height:18px;display:block;text-align:center;} a{ text-decoration:none; color:#990000;} </style> </head> <body> <script type="text/javascript"> var titleTable="<div id=\"calendar\"><div class=\"calendarTitle\">"; titleTable+="<table width=\"0%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td>"; titleTable+="<a href=\"javascript:void(0)\" onclick=\"SloppyJs.calendar.getNewTime('b')\" onfocus=\"this.blur()\" title='上月'><</a></td>"; titleTable+="<td class=\"threetd\" id=\"currentYear\" onclick=\"SloppyJs.calendar.writeDivString('currentYear','yeartype')\"> </td>"; titleTable+="<td class=\"twotd\" id=\"currentMonth\" onclick=\"SloppyJs.calendar.writeDivString('currentMonth','monthtype')\"> </td>&qu