├── track.ico
├── bigtrack.ico
├── My97DatePicker
├── skin
│ ├── datePicker.gif
│ ├── default
│ │ ├── img.gif
│ │ └── datepicker.css
│ ├── whyGreen
│ │ ├── bg.jpg
│ │ ├── img.gif
│ │ └── datepicker.css
│ └── WdatePicker.css
├── lang
│ ├── en.js
│ ├── zh-cn.js
│ └── zh-tw.js
├── WdatePicker.js
└── calendar.js
├── track.php
├── index.html
├── README.md
├── left.html
├── marker.html
├── zoom.html
├── track.html
├── translate.html
└── trackback.html
/track.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liusaint/baiduMap/HEAD/track.ico
--------------------------------------------------------------------------------
/bigtrack.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liusaint/baiduMap/HEAD/bigtrack.ico
--------------------------------------------------------------------------------
/My97DatePicker/skin/datePicker.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liusaint/baiduMap/HEAD/My97DatePicker/skin/datePicker.gif
--------------------------------------------------------------------------------
/My97DatePicker/skin/default/img.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liusaint/baiduMap/HEAD/My97DatePicker/skin/default/img.gif
--------------------------------------------------------------------------------
/My97DatePicker/skin/whyGreen/bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liusaint/baiduMap/HEAD/My97DatePicker/skin/whyGreen/bg.jpg
--------------------------------------------------------------------------------
/My97DatePicker/skin/whyGreen/img.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liusaint/baiduMap/HEAD/My97DatePicker/skin/whyGreen/img.gif
--------------------------------------------------------------------------------
/track.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/My97DatePicker/skin/WdatePicker.css:
--------------------------------------------------------------------------------
1 | .Wdate{
2 | border:#999 1px solid;
3 | height:20px;
4 | background:#fff url(datePicker.gif) no-repeat right;
5 | }
6 | .Wdate::-ms-clear{display:none;}
7 |
8 | .WdateFmtErr{
9 | font-weight:bold;
10 | color:red;
11 | }
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 百度地图Web API应用
6 |
7 |
8 |
12 |
13 |
--------------------------------------------------------------------------------
/My97DatePicker/lang/en.js:
--------------------------------------------------------------------------------
1 | var $lang={
2 | errAlertMsg: "Invalid date or the date out of range,redo or not?",
3 | aWeekStr: ["wk", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
4 | aLongWeekStr:["wk","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],
5 | aMonStr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
6 | aLongMonStr: ["January","February","March","April","May","June","July","August","September","October","November","December"],
7 | clearStr: "Clear",
8 | todayStr: "Today",
9 | okStr: "OK",
10 | updateStr: "OK",
11 | timeStr: "Time",
12 | quickStr: "Quick Selection",
13 | err_1: 'MinDate Cannot be bigger than MaxDate!'
14 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # baiduMap
2 | **百度地图API使用 2015年末 总结整理**
3 |
4 | 1.添加覆盖物,以及给覆盖物添加点击事件。
5 |
6 | 说明文章:http://blog.csdn.net/liusaint1992/article/details/50070839
7 |
8 | 演示地址:http://runningls.com/demos/baidumap/index.html?to=marker
9 |
10 | 2.自定义的方法来根据坐标点计算地图合适的中心坐标和缩放级别。(后来知道百度有实现这个功能的API。。。)
11 |
12 | 说明文章:http://blog.csdn.net/liusaint1992/article/details/50071613
13 |
14 | 演示地址:http://runningls.com/demos/baidumap/index.html?to=zoom
15 |
16 | 3.实时轨迹。使用随机生成的坐标。不断更新轨迹。并且在轨迹生长的过程中自动调整地图的显示范围。
17 |
18 | 说明文章:http://blog.csdn.net/liusaint1992/article/details/50072929
19 |
20 | 演示地址:http://runningls.com/demos/baidumap/index.html?to=track
21 |
22 | 4.轨迹回放。选择某个时间段,根据轨迹点的顺序和时间显示轨迹。
23 |
24 | 说明文章:http://blog.csdn.net/liusaint1992/article/details/50082781
25 |
26 | 演示地址:http://runningls.com/demos/baidumap/index.html?to=trackback
27 |
28 | 5.大批量多次坐标转换结果返回顺序问题。使用闭包,解决百度坐标转换返回顺序与请求顺序不一致引起的问题。(2016.6.29)
29 |
30 | 说明文章:http://blog.csdn.net/liusaint1992/article/details/51790777
31 |
32 | 演示地址:http://runningls.com/demos/baidumap/index.html?to=translate
33 |
34 |
35 |
--------------------------------------------------------------------------------
/My97DatePicker/lang/zh-cn.js:
--------------------------------------------------------------------------------
1 | var $lang={
2 | errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u8303\u56F4,\u9700\u8981\u64A4\u9500\u5417?",
3 | aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],
4 | aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],
5 | aMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00","\u5341\u4E8C"],
6 | aLongMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],
7 | clearStr: "\u6E05\u7A7A",
8 | todayStr: "\u4ECA\u5929",
9 | okStr: "\u786E\u5B9A",
10 | updateStr: "\u786E\u5B9A",
11 | timeStr: "\u65F6\u95F4",
12 | quickStr: "\u5FEB\u901F\u9009\u62E9",
13 | err_1: '\u6700\u5C0F\u65E5\u671F\u4E0D\u80FD\u5927\u4E8E\u6700\u5927\u65E5\u671F!'
14 | }
--------------------------------------------------------------------------------
/My97DatePicker/lang/zh-tw.js:
--------------------------------------------------------------------------------
1 | var $lang={
2 | errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u7BC4\u570D,\u9700\u8981\u64A4\u92B7\u55CE?",
3 | aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],
4 | aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],
5 | aMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00","\u5341\u4E8C"],
6 | aLongMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],
7 | clearStr: "\u6E05\u7A7A",
8 | todayStr: "\u4ECA\u5929",
9 | okStr: "\u78BA\u5B9A",
10 | updateStr: "\u78BA\u5B9A",
11 | timeStr: "\u6642\u9593",
12 | quickStr: "\u5FEB\u901F\u9078\u64C7",
13 | err_1: '\u6700\u5C0F\u65E5\u671F\u4E0D\u80FD\u5927\u65BC\u6700\u5927\u65E5\u671F!'
14 | }
--------------------------------------------------------------------------------
/left.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 左侧菜单
6 |
7 |
39 |
40 |
41 |
48 |
75 |
76 |
77 |
78 |
--------------------------------------------------------------------------------
/marker.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 添加标注点-百度地图API
6 |
7 |
8 |
9 |
10 |
25 |
26 |
73 |
74 |
--------------------------------------------------------------------------------
/zoom.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 适应屏幕
6 |
7 |
8 |
9 |
10 |
11 |
26 |
27 |
99 |
100 |
--------------------------------------------------------------------------------
/track.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Hello, World
7 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
111 |
112 |
--------------------------------------------------------------------------------
/My97DatePicker/skin/default/datepicker.css:
--------------------------------------------------------------------------------
1 | /*
2 | * My97 DatePicker 4.8
3 | */
4 |
5 | .WdateDiv{
6 | width:180px;
7 | background-color:#FFFFFF;
8 | border:#bbb 1px solid;
9 | padding:2px;
10 | }
11 |
12 | .WdateDiv2{
13 | width:360px;
14 | }
15 | .WdateDiv *{font-size:9pt;}
16 |
17 | .WdateDiv .NavImg a{
18 | display:block;
19 | cursor:pointer;
20 | height:16px;
21 | width:16px;
22 | }
23 |
24 | .WdateDiv .NavImgll a{
25 | float:left;
26 | background:transparent url(img.gif) no-repeat scroll 0 0;
27 | }
28 | .WdateDiv .NavImgl a{
29 | float:left;
30 | background:transparent url(img.gif) no-repeat scroll -16px 0;
31 | }
32 | .WdateDiv .NavImgr a{
33 | float:right;
34 | background:transparent url(img.gif) no-repeat scroll -32px 0;
35 | }
36 | .WdateDiv .NavImgrr a{
37 | float:right;
38 | background:transparent url(img.gif) no-repeat scroll -48px 0;
39 | }
40 |
41 | .WdateDiv #dpTitle{
42 | height:24px;
43 | margin-bottom:2px;
44 | padding:1px;
45 | }
46 |
47 | .WdateDiv .yminput{
48 | margin-top:2px;
49 | text-align:center;
50 | height:20px;
51 | border:0px;
52 | width:50px;
53 | cursor:pointer;
54 | }
55 |
56 | .WdateDiv .yminputfocus{
57 | margin-top:2px;
58 | text-align:center;
59 | font-weight:bold;
60 | height:20px;
61 | color:blue;
62 | border:#ccc 1px solid;
63 | width:50px;
64 | }
65 |
66 | .WdateDiv .menuSel{
67 | z-index:1;
68 | position:absolute;
69 | background-color:#FFFFFF;
70 | border:#ccc 1px solid;
71 | display:none;
72 | }
73 |
74 | .WdateDiv .menu{
75 | cursor:pointer;
76 | background-color:#fff;
77 | }
78 |
79 | .WdateDiv .menuOn{
80 | cursor:pointer;
81 | background-color:#BEEBEE;
82 | }
83 |
84 | .WdateDiv .invalidMenu{
85 | color:#aaa;
86 | }
87 |
88 | .WdateDiv .YMenu{
89 | margin-top:20px;
90 |
91 | }
92 |
93 | .WdateDiv .MMenu{
94 | margin-top:20px;
95 | *width:62px;
96 | }
97 |
98 | .WdateDiv .hhMenu{
99 | margin-top:-90px;
100 | margin-left:26px;
101 | }
102 |
103 | .WdateDiv .mmMenu{
104 | margin-top:-46px;
105 | margin-left:26px;
106 | }
107 |
108 | .WdateDiv .ssMenu{
109 | margin-top:-24px;
110 | margin-left:26px;
111 | }
112 |
113 | .WdateDiv .Wweek {
114 | text-align:center;
115 | background:#DAF3F5;
116 | border-right:#BDEBEE 1px solid;
117 | }
118 |
119 | .WdateDiv .MTitle{
120 | background-color:#BDEBEE;
121 | }
122 | .WdateDiv .WdayTable2{
123 | border-collapse:collapse;
124 | border:#c5d9e8 1px solid;
125 | }
126 | .WdateDiv .WdayTable2 table{
127 | border:0;
128 | }
129 |
130 | .WdateDiv .WdayTable{
131 | line-height:20px;
132 | border:#c5d9e8 1px solid;
133 | }
134 | .WdateDiv .WdayTable td{
135 | text-align:center;
136 | }
137 |
138 | .WdateDiv .Wday{
139 | cursor:pointer;
140 | }
141 |
142 | .WdateDiv .WdayOn{
143 | cursor:pointer;
144 | background-color:#C0EBEF;
145 | }
146 |
147 | .WdateDiv .Wwday{
148 | cursor:pointer;
149 | color:#FF2F2F;
150 | }
151 |
152 | .WdateDiv .WwdayOn{
153 | cursor:pointer;
154 | color:#000;
155 | background-color:#C0EBEF;
156 | }
157 | .WdateDiv .Wtoday{
158 | cursor:pointer;
159 | color:blue;
160 | }
161 | .WdateDiv .Wselday{
162 | background-color:#A9E4E9;
163 | }
164 | .WdateDiv .WspecialDay{
165 | background-color:#66F4DF;
166 | }
167 |
168 | .WdateDiv .WotherDay{
169 | cursor:pointer;
170 | color:#6A6AFF;
171 | }
172 |
173 | .WdateDiv .WotherDayOn{
174 | cursor:pointer;
175 | background-color:#C0EBEF;
176 | }
177 |
178 | .WdateDiv .WinvalidDay{
179 | color:#aaa;
180 | }
181 |
182 | .WdateDiv #dpTime{
183 | float:left;
184 | margin-top:3px;
185 | margin-right:30px;
186 | }
187 |
188 | .WdateDiv #dpTime #dpTimeStr{
189 | margin-left:1px;
190 | }
191 |
192 | .WdateDiv #dpTime input{
193 | width:18px;
194 | height:20px;
195 | text-align:center;
196 | border:#ccc 1px solid;
197 | }
198 |
199 | .WdateDiv #dpTime .tB{
200 | border-right:0px;
201 | }
202 |
203 | .WdateDiv #dpTime .tE{
204 | border-left:0;
205 | border-right:0;
206 | }
207 |
208 | .WdateDiv #dpTime .tm{
209 | width:7px;
210 | border-left:0;
211 | border-right:0;
212 | }
213 |
214 | .WdateDiv #dpTime #dpTimeUp{
215 | height:10px;
216 | width:13px;
217 | border:0px;
218 | background:url(img.gif) no-repeat -32px -16px;
219 | }
220 |
221 | .WdateDiv #dpTime #dpTimeDown{
222 | height:10px;
223 | width:13px;
224 | border:0px;
225 | background:url(img.gif) no-repeat -48px -16px;
226 | }
227 |
228 | .WdateDiv #dpQS {
229 | float:left;
230 | margin-right:3px;
231 | margin-top:3px;
232 | background:url(img.gif) no-repeat 0px -16px;
233 | width:20px;
234 | height:20px;
235 | cursor:pointer;
236 | }
237 | .WdateDiv #dpControl {
238 | text-align:right;
239 | }
240 | .WdateDiv .dpButton{
241 | height:20px;
242 | width:45px;
243 | border:#ccc 1px solid;
244 | margin-top:2px;
245 | margin-right:1px;
246 | }
--------------------------------------------------------------------------------
/My97DatePicker/skin/whyGreen/datepicker.css:
--------------------------------------------------------------------------------
1 | /*
2 | * My97 DatePicker 4.8 Skin:whyGreen
3 | */
4 | .WdateDiv{
5 | width:180px;
6 | background-color:#fff;
7 | border:#C5E1E4 1px solid;
8 | padding:2px;
9 | }
10 |
11 | .WdateDiv2{
12 | width:360px;
13 | }
14 | .WdateDiv *{font-size:9pt;}
15 |
16 | .WdateDiv .NavImg a{
17 | cursor:pointer;
18 | display:block;
19 | width:16px;
20 | height:16px;
21 | margin-top:1px;
22 | }
23 |
24 | .WdateDiv .NavImgll a{
25 | float:left;
26 | background:url(img.gif) no-repeat;
27 | }
28 | .WdateDiv .NavImgl a{
29 | float:left;
30 | background:url(img.gif) no-repeat -16px 0px;
31 | }
32 | .WdateDiv .NavImgr a{
33 | float:right;
34 | background:url(img.gif) no-repeat -32px 0px;
35 | }
36 | .WdateDiv .NavImgrr a{
37 | float:right;
38 | background:url(img.gif) no-repeat -48px 0px;
39 | }
40 |
41 | .WdateDiv #dpTitle{
42 | height:24px;
43 | padding:1px;
44 | border:#c5d9e8 1px solid;
45 | background:url(bg.jpg);
46 | margin-bottom:2px;
47 | }
48 |
49 | .WdateDiv .yminput{
50 | margin-top:2px;
51 | text-align:center;
52 | border:0px;
53 | height:20px;
54 | width:50px;
55 | color:#034c50;
56 | background-color:transparent;
57 | cursor:pointer;
58 | }
59 |
60 | .WdateDiv .yminputfocus{
61 | margin-top:2px;
62 | text-align:center;
63 | border:#939393 1px solid;
64 | font-weight:bold;
65 | color:#034c50;
66 | height:20px;
67 | width:50px;
68 | }
69 |
70 | .WdateDiv .menuSel{
71 | z-index:1;
72 | position:absolute;
73 | background-color:#FFFFFF;
74 | border:#A3C6C8 1px solid;
75 | display:none;
76 | }
77 |
78 | .WdateDiv .menu{
79 | cursor:pointer;
80 | background-color:#fff;
81 | color:#11777C;
82 | }
83 |
84 | .WdateDiv .menuOn{
85 | cursor:pointer;
86 | background-color:#BEEBEE;
87 | }
88 |
89 | .WdateDiv .invalidMenu{
90 | color:#aaa;
91 | }
92 |
93 | .WdateDiv .YMenu{
94 | margin-top:20px;
95 | }
96 |
97 | .WdateDiv .MMenu{
98 | margin-top:20px;
99 | *width:62px;
100 | }
101 |
102 | .WdateDiv .hhMenu{
103 | margin-top:-90px;
104 | margin-left:26px;
105 | }
106 |
107 | .WdateDiv .mmMenu{
108 | margin-top:-46px;
109 | margin-left:26px;
110 | }
111 |
112 | .WdateDiv .ssMenu{
113 | margin-top:-24px;
114 | margin-left:26px;
115 | }
116 |
117 | .WdateDiv .Wweek {
118 | text-align:center;
119 | background:#DAF3F5;
120 | border-right:#BDEBEE 1px solid;
121 | }
122 |
123 | .WdateDiv .MTitle{
124 | color:#13777e;
125 | background-color:#bdebee;
126 | }
127 | .WdateDiv .WdayTable2{
128 | border-collapse:collapse;
129 | border:#BEE9F0 1px solid;
130 | }
131 | .WdateDiv .WdayTable2 table{
132 | border:0;
133 | }
134 |
135 | .WdateDiv .WdayTable{
136 | line-height:20px;
137 | color:#13777e;
138 | background-color:#edfbfb;
139 | border:#BEE9F0 1px solid;
140 | }
141 | .WdateDiv .WdayTable td{
142 | text-align:center;
143 | }
144 |
145 | .WdateDiv .Wday{
146 | cursor:pointer;
147 | }
148 |
149 | .WdateDiv .WdayOn{
150 | cursor:pointer;
151 | background-color:#74d2d9 ;
152 | }
153 |
154 | .WdateDiv .Wwday{
155 | cursor:pointer;
156 | color:#ab1e1e;
157 | }
158 |
159 | .WdateDiv .WwdayOn{
160 | cursor:pointer;
161 | background-color:#74d2d9;
162 | }
163 | .WdateDiv .Wtoday{
164 | cursor:pointer;
165 | color:blue;
166 | }
167 | .WdateDiv .Wselday{
168 | background-color:#A7E2E7;
169 | }
170 | .WdateDiv .WspecialDay{
171 | background-color:#66F4DF;
172 | }
173 |
174 | .WdateDiv .WotherDay{
175 | cursor:pointer;
176 | color:#0099CC;
177 | }
178 |
179 | .WdateDiv .WotherDayOn{
180 | cursor:pointer;
181 | background-color:#C0EBEF;
182 | }
183 |
184 | .WdateDiv .WinvalidDay{
185 | color:#aaa;
186 | }
187 |
188 | .WdateDiv #dpTime{
189 | float:left;
190 | margin-top:3px;
191 | margin-right:30px;
192 | }
193 |
194 | .WdateDiv #dpTime #dpTimeStr{
195 | margin-left:1px;
196 | color:#497F7F;
197 | }
198 |
199 | .WdateDiv #dpTime input{
200 | height:20px;
201 | width:18px;
202 | text-align:center;
203 | color:#333;
204 | border:#61CAD0 1px solid;
205 | }
206 |
207 | .WdateDiv #dpTime .tB{
208 | border-right:0px;
209 | }
210 |
211 | .WdateDiv #dpTime .tE{
212 | border-left:0;
213 | border-right:0;
214 | }
215 |
216 | .WdateDiv #dpTime .tm{
217 | width:7px;
218 | border-left:0;
219 | border-right:0;
220 | }
221 |
222 | .WdateDiv #dpTime #dpTimeUp{
223 | height:10px;
224 | width:13px;
225 | border:0px;
226 | background:url(img.gif) no-repeat -32px -16px;
227 | }
228 |
229 | .WdateDiv #dpTime #dpTimeDown{
230 | height:10px;
231 | width:13px;
232 | border:0px;
233 | background:url(img.gif) no-repeat -48px -16px;
234 | }
235 |
236 | .WdateDiv #dpQS {
237 | float:left;
238 | margin-right:3px;
239 | margin-top:3px;
240 | background:url(img.gif) no-repeat 0px -16px;
241 | width:20px;
242 | height:20px;
243 | cursor:pointer;
244 | }
245 | .WdateDiv #dpControl {
246 | text-align:right;
247 | margin-top:3px;
248 | }
249 | .WdateDiv .dpButton{
250 | height:20px;
251 | width:45px;
252 | margin-top:2px;
253 | border:#38B1B9 1px solid;
254 | background-color:#CFEBEE;
255 | color:#08575B;
256 | }
--------------------------------------------------------------------------------
/translate.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
10 |
11 | 批量坐标转换的顺序问题
12 |
13 |
14 |
15 |
16 |
174 |
175 |
176 |
177 |
178 |
179 |
--------------------------------------------------------------------------------
/My97DatePicker/WdatePicker.js:
--------------------------------------------------------------------------------
1 | /*
2 | * My97 DatePicker 4.8 Beta4
3 | * License: http://www.my97.net/dp/license.asp
4 | */
5 | var $dp,WdatePicker;(function(){var $={
6 | $langList:[
7 | {name:"en",charset:"UTF-8"},
8 | {name:"zh-cn",charset:"gb2312"},
9 | {name:"zh-tw",charset:"GBK"}],
10 | $skinList:[
11 | {name:"default",charset:"gb2312"},
12 | {name:"whyGreen",charset:"gb2312"},
13 | {name:"blue",charset:"gb2312"},
14 | {name:"green",charset:"gb2312"},
15 | {name:"simple",charset:"gb2312"},
16 | {name:"ext",charset:"gb2312"},
17 | {name:"blueFresh",charset:"gb2312"},
18 | {name:"twoer",charset:"gb2312"},
19 | {name:"YcloudRed",charset:"gb2312"}],
20 | $wdate:true,
21 | $crossFrame:true,
22 | $preLoad:false,
23 | $dpPath:"",
24 | doubleCalendar:false,
25 | enableKeyboard:true,
26 | enableInputMask:true,
27 | autoUpdateOnChanged:null,
28 | weekMethod:"ISO8601",
29 | position:{},
30 | lang:"auto",
31 | skin:"default",
32 | dateFmt:"yyyy-MM-dd",
33 | realDateFmt:"yyyy-MM-dd",
34 | realTimeFmt:"HH:mm:ss",
35 | realFullFmt:"%Date %Time",
36 | minDate:"1900-01-01 00:00:00",
37 | maxDate:"2099-12-31 23:59:59",
38 | startDate:"",
39 | alwaysUseStartDate:false,
40 | yearOffset:1911,
41 | firstDayOfWeek:0,
42 | isShowWeek:false,
43 | highLineWeekDay:true,
44 | isShowClear:true,
45 | isShowToday:true,
46 | isShowOK:true,
47 | isShowOthers:true,
48 | readOnly:false,
49 | errDealMode:0,
50 | autoPickDate:null,
51 | qsEnabled:true,
52 | autoShowQS:false,
53 | opposite:false,
54 | hmsMenuCfg:{H:[1,6],m:[5,6],s:[15,4]},
55 | opposite:false,
56 |
57 | specialDates:null,specialDays:null,disabledDates:null,disabledDays:null,onpicking:null,onpicked:null,onclearing:null,oncleared:null,ychanging:null,ychanged:null,Mchanging:null,Mchanged:null,dchanging:null,dchanged:null,Hchanging:null,Hchanged:null,mchanging:null,mchanged:null,schanging:null,schanged:null,eCont:null,vel:null,elProp:"",errMsg:"",quickSel:[],has:{},getRealLang:function(){var _=$.$langList;for(var A=0;A<_.length;A++)if(_[A].name==this.lang)return _[A];return _[0]}};WdatePicker=U;var Y=window,T={innerHTML:""},N="document",H="documentElement",C="getElementsByTagName",V,A,S,G,c,X=navigator.appName;if(X=="Microsoft Internet Explorer")S=true;else if(X=="Opera")c=true;else G=true;A=$.$dpPath||J();if($.$wdate)K(A+"skin/WdatePicker.css");V=Y;if($.$crossFrame){try{while(V.parent!=V&&V.parent[N][C]("frameset").length==0)V=V.parent}catch(O){}}if(!V.$dp)V.$dp={ff:G,ie:S,opera:c,status:0,defMinDate:$.minDate,defMaxDate:$.maxDate};B();if($.$preLoad&&$dp.status==0)E(Y,"onload",function(){U(null,true)});if(!Y[N].docMD){E(Y[N],"onmousedown",D,true);Y[N].docMD=true}if(!V[N].docMD){E(V[N],"onmousedown",D,true);V[N].docMD=true}E(Y,"onunload",function(){if($dp.dd)P($dp.dd,"none")});function B(){try{V[N],V.$dp=V.$dp||{}}catch($){V=Y;$dp=$dp||{}}var A={win:Y,$:function($){return(typeof $=="string")?Y[N].getElementById($):$},$D:function($,_){return this.$DV(this.$($).value,_)},$DV:function(_,$){if(_!=""){this.dt=$dp.cal.splitDate(_,$dp.cal.dateFmt);if($)for(var B in $)if(this.dt[B]===undefined)this.errMsg="invalid property:"+B;else{this.dt[B]+=$[B];if(B=="M"){var C=$["M"]>0?1:0,A=new Date(this.dt["y"],this.dt["M"],0).getDate();this.dt["d"]=Math.min(A+C,this.dt["d"])}}if(this.dt.refresh())return this.dt}return""},show:function(){var A=V[N].getElementsByTagName("div"),$=100000;for(var B=0;B$)$=_}this.dd.style.zIndex=$+2;P(this.dd,"block");P(this.dd.firstChild,"")},unbind:function($){$=this.$($);if($.initcfg){L($,"onclick",function(){U($.initcfg)});L($,"onfocus",function(){U($.initcfg)})}},hide:function(){P(this.dd,"none")},attachEvent:E};for(var _ in A)V.$dp[_]=A[_];$dp=V.$dp}function E(B,_,A,$){if(B.addEventListener){var C=_.replace(/on/,"");A._ieEmuEventHandler=function($){return A($)};B.addEventListener(C,A._ieEmuEventHandler,$)}else B.attachEvent(_,A)}function L(A,$,_){if(A.removeEventListener){var B=$.replace(/on/,"");_._ieEmuEventHandler=function($){return _($)};A.removeEventListener(B,_._ieEmuEventHandler,false)}else A.detachEvent($,_)}function a(_,$,A){if(typeof _!=typeof $)return false;if(typeof _=="object"){if(!A)for(var B in _){if(typeof $[B]=="undefined")return false;if(!a(_[B],$[B],true))return false}return true}else if(typeof _=="function"&&typeof $=="function")return _.toString()==$.toString();else return _==$}function J(){var _,A,$=Y[N][C]("script");for(var B=0;B<$.length;B++){_=$[B].getAttribute("src")||"";_=_.substr(0,_.toLowerCase().indexOf("wdatepicker.js"));A=_.lastIndexOf("/");if(A>0)_=_.substring(0,A+1);if(_)break}return _}function K(A,$,B){var D=Y[N][C]("HEAD").item(0),_=Y[N].createElement("link");if(D){_.href=A;_.rel="stylesheet";_.type="text/css";if($)_.title=$;if(B)_.charset=B;D.appendChild(_)}}function F($){$=$||V;var A=0,_=0;while($!=V){var D=$.parent[N][C]("iframe");for(var F=0;F_.scrollTop||A.scrollLeft>_.scrollLeft))?A:_;return{"top":B.scrollTop,"left":B.scrollLeft}}function D($){try{var _=$?($.srcElement||$.target):null;if($dp.cal&&!$dp.eCont&&$dp.dd&&_!=$dp.el&&$dp.dd.style.display=="block")$dp.cal.close()}catch($){}}function Z(){$dp.status=2}var Q,_;function U(K,C){if(!$dp)return;B();var L={};for(var H in K)L[H]=K[H];for(H in $)if(H.substring(0,1)!="$"&&L[H]===undefined)L[H]=$[H];if(C){if(!J()){_=_||setInterval(function(){if(V[N].readyState=="complete")clearInterval(_);U(null,true)},50);return}if($dp.status==0){$dp.status=1;L.el=T;I(L,true)}else return}else if(L.eCont){L.eCont=$dp.$(L.eCont);L.el=T;L.autoPickDate=true;L.qsEnabled=false;I(L)}else{if($.$preLoad&&$dp.status!=2)return;var F=D();if(Y.event===F||F){L.srcEl=F.srcElement||F.target;F.cancelBubble=true}L.el=L.el=$dp.$(L.el||L.srcEl);if(!L.el||L.el["My97Mark"]===true||L.el.disabled||($dp.dd&&P($dp.dd)!="none"&&$dp.dd.style.left!="-970px")){try{if(L.el["My97Mark"])L.el["My97Mark"]=false}catch(A){}return}if(F&&L.el.nodeType==1&&!a(L.el.initcfg,K)){$dp.unbind(L.el);E(L.el,F.type=="focus"?"onclick":"onfocus",function(){U(K)});L.el.initcfg=K}I(L)}function J(){if(S&&V!=Y&&V[N].readyState!="complete")return false;return true}function D(){if(G){func=D.caller;while(func!=null){var $=func.arguments[0];if($&&($+"").indexOf("Event")>=0)return $;func=func.caller}return null}return event}}function R(_,$){return _.currentStyle?_.currentStyle[$]:document.defaultView.getComputedStyle(_,false)[$]}function P(_,$){if(_)if($!=null)_.style.display=$;else return R(_,"display")}function I(G,_){var D=G.el?G.el.nodeName:"INPUT";if(_||G.eCont||new RegExp(/input|textarea|div|span|p|a/ig).test(D))G.elProp=D=="INPUT"?"value":"innerHTML";else return;if(G.lang=="auto")G.lang=S?navigator.browserLanguage.toLowerCase():navigator.language.toLowerCase();if(!G.eCont)for(var C in G)$dp[C]=G[C];if(!$dp.dd||G.eCont||($dp.dd&&(G.getRealLang().name!=$dp.dd.lang||G.skin!=$dp.dd.skin))){if(G.eCont)E(G.eCont,G);else{$dp.dd=V[N].createElement("DIV");$dp.dd.style.cssText="position:absolute";V[N].body.appendChild($dp.dd);E($dp.dd,G);if(_)$dp.dd.style.left=$dp.dd.style.top="-970px";else{$dp.show();B($dp)}}}else if($dp.cal){$dp.show();$dp.cal.init();if(!$dp.eCont)B($dp)}function E(K,J){var I=V[N].domain,F=false,G="";K.innerHTML=G;var _=$.$langList,D=$.$skinList,H;try{H=K.lastChild.contentWindow[N]}catch(E){F=true;K.removeChild(K.lastChild);var L=V[N].createElement("iframe");L.hideFocus=true;L.frameBorder=0;L.scrolling="no";L.src="javascript:(function(){var d=document;d.open();d.domain='"+I+"';})()";K.appendChild(L);setTimeout(function(){H=K.lastChild.contentWindow[N];C()},97);return}C();function C(){var _=J.getRealLang();K.lang=_.name;K.skin=J.skin;var $=[""];if(F)$[1]="document.domain=\""+I+"\";";for(var C=0;C");$.push("");$.push("