LK.Shop.Web/Styles/Style1/JS/DataPicker.js

(开头部分) 24KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/**
* add auto hide when mouse moveout
* 
* @version 1.0.1 
* @date 2010-11-23
* @author coraldane@gmail.com
*/

/**   
* Date Picker
* @param   inputObj  The input object want to contain date.
* @param   dateFormatStyle  Default Date Formatter is "yyyy-MM-dd", you could use your own defined format.
* @param   beginDate Default value is 1990-01-01
* @param   endDate   Default value is 2020-01-01
* @param   lang      0(English)|1(Chinese)  Default Language is 0(English).
*/
function setday(inputObj, dateFormatStyle, beginDate, endDate, lang) {
    if (null == inputObj) { return null; }
    new Calendar(inputObj, dateFormatStyle, beginDate, endDate, lang).show();
}

/**   
* Month Picker
* @param   inputObj  The input object want to contain date.
* @param   dateFormatStyle  Default Date Formatter is "yyyy-MM", you could use your own defined format.
* @param   beginDate Default value is 1990-01
* @param   endDate   Default value is 2020-01
* @param   lang      0(English)|1(Chinese)  Default Language is 0(English).
*/
function setmonth(inputObj, dateFormatStyle, beginDate, endDate, lang) {
    if (null == inputObj) { return null; }
    new Calendar(inputObj, dateFormatStyle, beginDate, endDate, lang, "m").show();
}

/**
Calendar Style
*/
Calendar.prototype.style = function () {
    var strStyle = "<style type='text/css'>";
    strStyle += ".calendar {font-size:12px; margin:0;padding:0px;border:1px solid #397EAE;background-color:#DBE7F2;}";
    strStyle += ".calendar ul {list-style-type:none; margin:0; padding:0;vertical-align:middle;}";
    strStyle += ".calendar li {float:left;}.calendar b{font-weight:bold;}";
    strStyle += ".calendar .day li {height:20px;}";
    strStyle += ".calendar .day li,.calendar .date li{float:left;width:14.13%;height:20px;line-height:20px;text-align:center;}";
    strStyle += ".calendar .day li{font-weight:bold;} .calendar .date li{background-color:#EDF3F9;}";
    strStyle += ".calendar .month li{float:left;width:24.8%;height:20px;line-height:20px;text-align:center;background-color:#EDF3F9;}";
    strStyle += ".calendar li a{ text-decoration:none; font-family:Tahoma; font-size:11px; color:#333}";
    strStyle += ".calendar li:hover {cursor:pointer;color:#f30; text-decoration:none;background-color:#EDF3F9;}";
    strStyle += ".calendar .date li:hover, .calendar .month li:hover{cursor:pointer;color:#f30; text-decoration:none;background-color:#DBE7F2;}";
    strStyle += ".calendarlihover {color:#f30;text-decoration:none;background-color:#E8F2FE;}";
    strStyle += ".calendar li a.hasArticle {font-weight:bold; color:#f60 !important}";
    strStyle += ".lastMonthDate, .nextMonthDate {color:#bbb;font-size:11px}";
    strStyle += ".selectThisYear, .selectThisMonth{text-decoration:none; margin:0px; color:#000; font-weight:bold}";
    strStyle += ".calendar .LastMonth, .calendar .NextMonth{text-decoration:none; color:#000; font-size:18px; font-weight:bold; line-height:16px;}";
    strStyle += ".calendarTitle{background:#EDF3F9;text-align:center;height:20px;line-height:20px;clear:both;width:100%;}";
    strStyle += ".calendarTitle .mark{text-decoration:none;color:#000;font-family:Tahoma;font-size:18px;font-weight:normal;}";
    strStyle += ".today{ background-color:#ffffaa;border:1px solid #f60;padding:0 1px;}";
    strStyle += ".today a { color:#f30; }";
    strStyle += ".calendarBottom {text-align:center;height:20px;line-height:20px;clear:both;width:100%;border-top:1px solid #ddd;}";
    strStyle += ".calendarBottom li{float:left;height:20px;line-height:20px;font-weight:bold;text-align:center;}";
后面还有 539 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。