Привет всем, есть скрипт который выводит день недели
Code
<script language="Javascript" type="text/javascript">
<!--//
calendar = new Date();
day = calendar.getDay();
document.write("")
if (day == 0) {
document.write("<font color=#ff0000>Воскресенье</font>")
}
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("Суббота")
}
//-->
</script>
но нужно или переделать или другой может есть что бы каждый день выводил новый фрейм, например Понедельник-Фрейм1, Вторник Фрейм-2 и т.д помогите подалуйстаДобавлено (22.03.2012, 18:06)
---------------------------------------------
уже сам сделал... может кому пригодится...
Code
<script language="Javascript" type="text/javascript">
<!--//
calendar = new Date();
day = calendar.getDay();
document.write("")
if (day == 0) {
self.location="voskres.html"
}
if (day == 1) {
self.location="ponedel.html"
}
if (day == 2) {
self.location="vtornik.html"
}
if (day == 3) {
self.location="sreda.html"
}
if (day == 4) {
self.location="chetverg.html"
}
if (day == 5) {
self.location="pyatnica.html"
}
if (day == 6) {
self.location="sybbota.html"
}
//-->
</script>
пригодится для вывода новостей на сайте, анекдотов, и все такое...