My97DatePicker.htm 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. 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. $dp.getLangIndex = function(name){
  19. var arr = langList;
  20. for (var i = 0; i < arr.length; i++) {
  21. if (arr[i].name == name) {
  22. return i;
  23. }
  24. }
  25. return -1;
  26. }
  27. $dp.getLang = function(name){
  28. var index = $dp.getLangIndex(name);
  29. if (index == -1) {
  30. index = 0;
  31. }
  32. return langList[index];
  33. }
  34. $dp.realLang = $dp.getLang($dp.lang);
  35. document.write("<script src='lang/" + $dp.realLang.name + ".js' charset='" + $dp.realLang.charset + "'><\/script>");
  36. for (var i = 0; i < skinList.length; i++) {
  37. 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"/>');
  38. }
  39. </script>
  40. <script type="text/javascript" src="calendar.js"></script>
  41. </head>
  42. <body leftmargin="0" topmargin="0" onload="$c.autoSize()" tabindex=0>
  43. </body>
  44. </html>
  45. <script>new My97DP();</script>