Не работает срипт, прописанный в нижнем окне.

Общие вопросы, касающиеся функционирования и администрирования ваших форумов. Как сменить аватару, часовой пояс, пароль? Вам сюда.
Ответить
Сообщений: 2 Страница 1 из 1

Сообщение
Автор
24-окт, 11:10
В нижнем окне вставляю скрипт календаря и он не работает, но, как только я переношу его в верхнее окно - он прекрасно работает.
Код: Выделить всё
<SCRIPT language=Javascript>
calendar = new Date();
day = calendar.getDay();
document.write("<font color=#668966 ><center><table width=100 border=1><td><center><font size=2>")
if (day == 0) {
document.write("Воскресенье")
}
if (day == 1) {
document.write("Понедельник")
}
if (day == 2) {
document.write("Вторник")
}
if (day == 3) {
document.write("Среда")
}
if (day == 4) {
document.write("Четверг")
}
if (day == 5) {
document.write("Пятница")
}
if (day == 6) {
document.write("Суббота")
}
if (day == 7) {
document.write("Воскресенье")
}
document.write("</font></center></td><tr><td><center><font size=2>")
month = calendar.getMonth();
if (month == 0) {
document.write("Январь")
}
if (month == 1) {
document.write("Февраль")
}
if (month == 2) {
document.write("Март")
}
if (month == 3) {
document.write("Апрель")
}
if (month == 4) {
document.write("Май")
}
if (month == 5) {
document.write("Июнь")
}
if (month == 6) {
document.write("Июль")
}
if (month == 7) {
document.write("Август")
}
if (month == 8) {
document.write("Сентябрь")
}
if (month == 9) {
document.write("Октябрь")
}
if (month == 10) {
document.write("Ноябрь")
}
if (month == 11) {
document.write("Декабрь")
}
<!--fantasyflash.ru-->
document.write("</font></center></td><tr><td><center><font size=7>")
date = calendar.getDate();
document.write(date)
document.write("</font></center></td><tr><td><center><font size=2>")
year = calendar.getYear();
if (year < 100) {
document.write("19" + year + "")
}//osw
else if (year > 1999) {
document.write(year)
}
document.write("</font></center></td></table>")
</SCRIPT>
24-окт, 14:20
У меня твой скрипт в нижнем окне работает: http://packer.flybb.ru/

Вынеси его код в самый конец. Проверь закрытие тегов предыдущего кода.

Сообщений: 2 Страница 1 из 1
Ответить

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0

cron