My97DatePicker.htm 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <html>
  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. var $d, $dp, $pdp = parent.$dp, $dt, $tdt, $sdt, $lastInput, $IE=$pdp.ie, $FF = $pdp.ff,$OPERA=$pdp.opera, $ny, $cMark = false;
  8. if ($pdp.eCont) {
  9. $dp = {};
  10. for (var p in $pdp) {
  11. $dp[p] = $pdp[p];
  12. }
  13. }
  14. else
  15. $dp = $pdp;
  16. $dp.realLang = getCurr(langList, $dp.lang);
  17. document.write("<script src='lang/" + $dp.realLang.name + ".js' charset='" + $dp.realLang.charset + "'><\/script>");
  18. for (var i = 0; i < skinList.length; i++) {
  19. 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"/>');
  20. }
  21. function getCurr(arr, name){
  22. var isFound = false;
  23. var item = arr[0];
  24. for (var i = 0; i < arr.length; i++) {
  25. if (arr[i].name == name) {
  26. item = arr[i];
  27. break;
  28. }
  29. }
  30. return item;
  31. }
  32. </script>
  33. <script type="text/javascript" src="calendar.js"></script>
  34. </head>
  35. <body leftmargin="0" topmargin="0" onload="$c.autoSize()">
  36. </body>
  37. </html>
  38. <script>new My97DP();</script>