[HowTo] LineCalendar - Eine Datei 5 Anwendungen (4xWinterboard, 1xPerPageHtml)

    • Ändere mal folgendes in der

      Quellcode

      1. function updateDate() {
      2. var this_weekday_name_array = weekdays,
      3. this_date_timestamp = new Date(),
      4. this_weekday = this_date_timestamp.getDay(),
      5. this_date = this_date_timestamp.getDate(),
      6. this_month = this_date_timestamp.getMonth(),
      7. this_year = this_date_timestamp.getFullYear(),
      8. dim = [31,0,31,30,31,30,31,31,30,31,30,31],
      9. oD = new Date(this_year, this_date-1, 1),
      10. linecalendar = id('linecalendar').firstChild;
      11. oD.od = oD.getDay()+1;
      12. dim[1]=((this_year%100 != 0) && (this_year%4 == 0) || (this_year%400 == 0)) ? 29 : 28;
      13. var t = '',
      14. k = 0,
      15. days_TM = dim[this_month],
      16. days_PM = (this_month == 0) ? dim[11] : dim[this_month-1],
      17. days_NM = (this_month == 11) ? dim[0] : dim[this_month+1];
      18. count = this_weekday - 1;
      19. if(count == -1) count = 6;
      20. do {
      21. var k2 = this_date-k,
      22. wkstart = (k2<=0) ? days_PM+k2 : k2;
      23. k++;}
      24. while(k <= count);
      25. for (s=1;s<7;s++) {
      26. t += (s == this_weekday) ? '<span class="linetoday">' + this_weekday_name_array[s] +
      27. '</span>' : '<span class="linedaysofweek">' + this_weekday_name_array[s] + '</span>';}
      28. for (s=0;s<1;s++) {
      29. t += (s == this_weekday) ? '<span class="linetoday">' + this_weekday_name_array[s] +
      30. '</span>' : '<span class="linedaysofweek">' + this_weekday_name_array[s] + '</span>';}
      31. t += '<span class="linedaysofweek">[COLOR='#FFA500']&bull;[/COLOR]</span>';
      32. for (L=0;L<count;L++) {
      33. var L2 = L+wkstart;
      34. if(L2>days_PM)
      35. L2 = L2-days_PM;
      36. t += (L2 == this_date) ? '<span class="linetoday">' + L2 + '</span>' : '<span class="linedaysofweek">' + L2 + '</span>';}
      37. for (M=0;M<=6-count;M++) {
      38. var M2 = M+this_date;
      39. if(M2 > days_TM) M2 = M2-days_TM;
      40. t += (M2 == this_date) ? '<span class="linetoday">' + M2 + '</span>' : '<span class="linedaysofweek">' + M2 + '</span>';}
      41. var texto = document.createElement('div');
      42. texto.innerHTML = '<div id="lineweek">' + t + '</div>';
      43. if (linecalendar) id('linecalendar').replaceChild(texto, linecalendar);
      44. else id('linecalendar').appendChild(texto);
      45. document.getElementById("month_year").innerHTML = months[this_date_timestamp.getMonth()] + " " + this_date_timestamp.getFullYear();
      46. }
      Alles anzeigen


      &bull; in <br> ändern.
    • Dafür must Du folgendes tun:

      Quellcode

      1. #month_year {
      2. display: ;
      3. position: absolute;
      4. top: 410px;
      5. left: 0px;
      6. width: 320px;
      7. [COLOR='#FFA500']text-align:center;[/COLOR]
      8. font-size: 38px;
      9. color: #ffffff;
      10. font-weight: bold;
      11. z-index: 2;
      12. text-transform: uppercase;
      13. opacity: 0.1;}
      Alles anzeigen

      Einfügen

      Original

      Quellcode

      1. document.getElementById("month_year").innerHTML = months[this_date_timestamp.getMonth()] + " " + this_date_timestamp.getFullYear();

      Fälschung ;)

      Quellcode

      1. document.getElementById("month_year").innerHTML = [COLOR='#FF8C00']this_date_timestamp.getMonth()+1 + "<br>" [/COLOR]+ this_date_timestamp.getFullYear();