Đăng kí thành viên · Quên MK?

Lần hoạt động

Diễn đàn | Wap Web | Script - Js
Tìm kiếm
  Code Làm Đẹp Wap Web
Admin  Admin [FOUNDER]
 
PRO
(01.01.2019 / 16:01) TOP
  1. <SCRIPT LANGUAGE="JavaScript">
  2.  
  3. <!--Total Java Scripts 99 - Next Step Software-->
  4.  
  5. <!-- Begin
  6. monthnames = new Array(
  7. "January",
  8. "Februrary",
  9. "March",
  10. "April",
  11. "May",
  12. "June",
  13. "July",
  14. "August",
  15. "September",
  16. "October",
  17. "November",
  18. "Decemeber");
  19. var linkcount=0;
  20. function addlink(month, day, href) {
  21. var entry = new Array(3);
  22. entry[0] = month;
  23. entry[1] = day;
  24. entry[2] = href;
  25. this[linkcount++] = entry;
  26. }
  27. Array.prototype.addlink = addlink;
  28. linkdays = new Array();
  29. monthdays = new Array(12);
  30. monthdays[0]=31;
  31. monthdays[1]=28;
  32. monthdays[2]=31;
  33. monthdays[3]=30;
  34. monthdays[4]=31;
  35. monthdays[5]=30;
  36. monthdays[6]=31;
  37. monthdays[7]=31;
  38. monthdays[8]=30;
  39. monthdays[9]=31;
  40. monthdays[10]=30;
  41. monthdays[11]=31;
  42. todayDate=new Date();
  43. thisday=todayDate.getDay();
  44. thismonth=todayDate.getMonth();
  45. thisdate=todayDate.getDate();
  46. thisyear=todayDate.getYear();
  47. thisyear = thisyear % 100;
  48. thisyear = ((thisyear < 50) ? (2000 + thisyear) : (1900 + thisyear));
  49. if (((thisyear % 4 == 0)
  50. && !(thisyear % 100 == 0))
  51. ||(thisyear % 400 == 0)) monthdays[1]++;
  52. startspaces=thisdate;
  53. while (startspaces > 7) startspaces-=7;
  54. startspaces = thisday - startspaces + 1;
  55. if (startspaces < 0) startspaces+=7;
  56. document.write("<table border=2 bgcolor=white ");
  57. document.write("bordercolor=black><font color=black>");
  58. document.write("<tr><td colspan=7><center><strong>"
  59. + monthnames[thismonth] + " " + thisyear
  60. + "</strong></center></font></td></tr>");
  61. document.write("<tr>");
  62. document.write("<td align=center>Su</td>");
  63. document.write("<td align=center>M</td>");
  64. document.write("<td align=center>Tu</td>");
  65. document.write("<td align=center>W</td>");
  66. document.write("<td align=center>Th</td>");
  67. document.write("<td align=center>F</td>");
  68. document.write("<td align=center>Sa</td>");
  69. document.write("</tr>");
  70. document.write("<tr>");
  71. for (s=0;s<startspaces;s++) {
  72. document.write("<td> </td>");
  73. }
  74. count=1;
  75. while (count <= monthdays[thismonth]) {
  76. for (b = startspaces;b<7;b++) {
  77. linktrue=false;
  78. document.write("<td>");
  79. for (c=0;c<linkdays.length;c++) {
  80. if (linkdays[c] != null) {
  81. if ((linkdays[c][0]==thismonth + 1) && (linkdays[c][1]==count)) {
  82. document.write("<a href="/" + linkdays[c][2] + "">");
  83. linktrue=true;
  84. }
  85. }
  86. }
  87. if (count==thisdate) {
  88. document.write("<font color='FF0000'><strong>");
  89. }
  90. if (count <= monthdays[thismonth]) {
  91. document.write(count);
  92. }
  93. else {
  94. document.write(" ");
  95. }
  96. if (count==thisdate) {
  97. document.write("</strong></font>");
  98. }
  99. if (linktrue)
  100. document.write("</a>");
  101. document.write("</td>");
  102. count++;
  103. }
  104. document.write("</tr>");
  105. document.write("<tr>");
  106. startspaces=0;
  107. }
  108. document.write("</table></p>");
  109. // End -->
  110. </SCRIPT>
101 Lượt xem chủ đề  Tổng số: 1 Comment

Cùng chuyên mục
Lọc theo tác giả
Xem chủ để ngoại tuyến (Offline)

Trong diễn đàn

Sắp xếp theo thứ tự từ trên xuống
Forum.GiaiTri321.Info
Trang chủ
0 / 1

DucVuVip.Pro - Diễn Đàn DucVuVip.Pro, Chia Sẻ Code, Thủ Thuật Wap/Webmaster 6.2.1

© Forum.GiaiTri321.Info