My97DatePicker.htm 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <html>
  2. <head>
  3. <meta http-equiv="content-type" content="text/xml; charset=gb2312" />
  4. <title>My97DatePicker</title>
  5. <script type="text/javascript" src="config.js" charset=gb2312></script>
  6. <script>
  7. //var l = location;
  8. if(parent==window)
  9. location.href = 'http://www.my97.net';
  10. /*
  11. else{
  12. var start=l.href.indexOf('#')+1;
  13. if(start>0){
  14. document.domain = l.href.substr(start);
  15. }
  16. }
  17. */
  18. var $d, $dp, $pdp = parent.$dp, $dt, $tdt, $sdt, $lastInput, $IE=$pdp.ie, $FF = $pdp.ff,$OPERA=$pdp.opera, $ny, $cMark = false;
  19. //说明是flat此时,拷贝一份$dp
  20. if ($pdp.eCont) {
  21. $dp = {};
  22. for (var p in $pdp) {
  23. $dp[p] = $pdp[p];
  24. }
  25. }
  26. else{
  27. $dp = $pdp;
  28. }
  29. $dp.getLangIndex = function(name){
  30. var arr = langList;
  31. for (var i = 0; i < arr.length; i++) {
  32. if (arr[i].name == name) {
  33. return i;
  34. }
  35. }
  36. return -1;
  37. }
  38. $dp.getLang = function(name){
  39. var index = $dp.getLangIndex(name);
  40. if (index == -1) {
  41. index = 0;
  42. }
  43. return langList[index];
  44. }
  45. //根据语言设置选择语言
  46. $dp.realLang = $dp.getLang($dp.lang);
  47. document.write("<script src='lang/" + $dp.realLang.name + ".js' charset='" + $dp.realLang.charset + "'><\/script>");
  48. //导入皮肤列表文件
  49. for (var i = 0; i < skinList.length; i++) {
  50. 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"/>');
  51. }
  52. </script>
  53. <script type="text/javascript" src="calendar.js" charset="gb2312"></script>
  54. </head>
  55. <body leftmargin="0" topmargin="0" onLoad="$c.autoSize()" tabindex=0>
  56. </body>
  57. </html>
  58. <script>
  59. new My97DP();
  60. </script>