Показать сообщение отдельно
  #21 (permalink)  
Старый 22.10.2014, 18:39
Аспирант
Отправить личное сообщение для ViRuSreloaded Посмотреть профиль Найти все сообщения от ViRuSreloaded
 
Регистрация: 13.10.2014
Сообщений: 73

Может код внизу страницы перебивает?
<script>

	function daysInMonth(month,year) {
	return new Date(year, month, 0).getDate();
}
temp_date = new Date();
day = temp_date.getDate();
month = temp_date.getMonth() + 1;
year = temp_date.getFullYear();

var weekday=new Array(7);

weekday[0]="SU";
weekday[1]="MO";
weekday[2]="TU";
weekday[3]="WE";
weekday[4]="TH";
weekday[5]="FR";
weekday[6]="SA";

if (day < 10) {
day = "0" + day;
}
if (month <10) {
month = "0" + month;
}
var daysInThisMonth = daysInMonth(month,year);



</script>
Ответить с цитированием