提交 | 用户 | 时间
|
58d006
|
1 |
<html> |
A |
2 |
<head> |
|
3 |
<meta http-equiv="content-type" content="text/xml; charset=utf-8" /> |
|
4 |
<title>My97DatePicker</title> |
|
5 |
<script type="text/javascript" src="config.js"></script> |
|
6 |
<script> |
|
7 |
if(parent==window) |
|
8 |
location.href = 'http://www.my97.net'; |
|
9 |
var $d, $dp, $pdp = parent.$dp, $dt, $tdt, $sdt, $IE=$pdp.ie, $FF = $pdp.ff,$OPERA=$pdp.opera, $ny, $cMark = false; |
|
10 |
if ($pdp.eCont) { |
|
11 |
$dp = {}; |
|
12 |
for (var p in $pdp) { |
|
13 |
$dp[p] = $pdp[p]; |
|
14 |
} |
|
15 |
} |
|
16 |
else |
|
17 |
$dp = $pdp; |
|
18 |
|
|
19 |
$dp.getLangIndex = function(name){ |
|
20 |
var arr = langList; |
|
21 |
for (var i = 0; i < arr.length; i++) { |
|
22 |
if (arr[i].name == name) { |
|
23 |
return i; |
|
24 |
} |
|
25 |
} |
|
26 |
return -1; |
|
27 |
} |
|
28 |
|
|
29 |
$dp.getLang = function(name){ |
|
30 |
var index = $dp.getLangIndex(name); |
|
31 |
if (index == -1) { |
|
32 |
index = 0; |
|
33 |
} |
|
34 |
return langList[index]; |
|
35 |
} |
|
36 |
|
|
37 |
$dp.realLang = $dp.getLang($dp.lang); |
|
38 |
document.write("<script src='lang/" + $dp.realLang.name + ".js' charset='" + $dp.realLang.charset + "'><\/script>"); |
|
39 |
|
|
40 |
for (var i = 0; i < skinList.length; i++) { |
|
41 |
document.write('<link rel="stylesheet" type="text/css" href="skin/' + skinList[i].name + '/datepicker.css" title="' + skinList[i].name + '" charset="' + skinList[i].charset + '" disabled="true"/>'); |
|
42 |
} |
|
43 |
</script> |
|
44 |
<script type="text/javascript" src="calendar.js"></script> |
|
45 |
</head> |
|
46 |
<body leftmargin="0" topmargin="0" onload="$c.autoSize()" tabindex=0> |
|
47 |
</body> |
|
48 |
</html> |
|
49 |
<script>new My97DP();</script> |