|
<html><head><title>Показ страницы по номеру дня недели</title> <script LANGUAGE="JavaScript"> <!-- function initArray() { this.length = initArray.arguments.length; for (var i = 0; i < this.length; i++) this[i+1] = initArray.arguments[i]; } var DOWArray = new initArray("7d","1d","2d","3d","4d","5d","6d"); var today = new Date(); var day = DOWArray[today.getDay()+1]; window.location = day+".html"; //--> </script> </head><body></body></html> |
<HTML><HEAD><TITLE>Показ страницы по номеру месяца</TITLE> <script LANGUAGE="JavaScript"> <!-- Begin var today = new Date(); var month = today.getMonth() + 1; // Название файла соответственно 1m.html; 2m.html ... window.location = month + "mes" + ".html"; // End --> </script> </HEAD><BODY></BODY></HTML> |
<html><head><title>Показ cтраницы в зависимости от месяца</title> </head><body> <script> var now = new Date(); var month = now.getMonth(); var date = now.getDate(); var year = now.getYear(); var season; // Название файла и директория могут быть любыми armonth = new Array("1/dd.html", "2/dd.html", "3/dd.html", "4/dd.html", "5/dd.html", "6/dd.html", "7/dd.html", "8/dd.html", "9/dd.html", "10/dd.html", "11/dd.html", "12/dd.html"); window.location = armonth[month]; </script> </body></html> |
<html><head><title>Открытие страницы по дню месяца</title> <script> var daylinks=new Array() // Название файла может быть любым daylinks[1]="d1.html" daylinks[2]="d2.html" daylinks[3]="d3.html" daylinks[4]="d4.html" daylinks[5]="d5.html" daylinks[6]="d6.html" daylinks[7]="d7.html" daylinks[8]="d8.html" daylinks[9]="d9.html" daylinks[10]="d10.html" daylinks[11]="d11.html" daylinks[12]="d12.html" daylinks[13]="d13.html" daylinks[14]="d14.html" daylinks[15]="d15.html" daylinks[16]="d16.html" daylinks[17]="d17.html" daylinks[18]="d18.html" daylinks[19]="d19.html" daylinks[20]="d20.html" daylinks[21]="d21.html" daylinks[22]="d22.html" daylinks[23]="d23.html" daylinks[24]="d24.html" daylinks[25]="d25.html" daylinks[26]="d26.html" daylinks[27]="d27.html" daylinks[28]="d28.html" daylinks[29]="d29.html" daylinks[30]="d30.html" daylinks[31]="d31.html" var mydate=new Date() var today=mydate.getDate() window.location =daylinks[today]; </script> </head><body></body></html> |
<html><head><title>Показ фото в зависимости от месяца</title> </head><body> <script LANGUAGE="JavaScript"> <!-- Begin var now = new Date(); var month = now.getMonth(); var date = now.getDate(); var year = now.getYear(); var season; armonth = new Array("1.gif", "2.gif", "3.gif", "4.gif", "5.gif", "6.gif", "7.gif", "8.gif", "9.gif", "10.gif", "11.gif", "12.gif"); document.write("<img src='" + armonth[month] + "'>"); // End --> </script> </body></html> |
<html><head><title>Показ фото по дням месяца</title> </head><body> <script> var daylinks=new Array() daylinks[1]="d1.jpg" daylinks[2]="d2.jpg" daylinks[3]="d3.jpg" daylinks[4]="d4.jpg" daylinks[5]="d5.jpg" daylinks[6]="d6.jpg" daylinks[7]="d7.jpg" daylinks[8]="d8.jpg" daylinks[9]="d9.jpg" daylinks[10]="d10.jpg" daylinks[11]="d11.jpg" daylinks[12]="d12.jpg" daylinks[13]="d13.jpg" daylinks[14]="d14.jpg" daylinks[15]="d15.jpg" daylinks[16]="d16.jpg" daylinks[17]="d17.jpg" daylinks[18]="d18.jpg" daylinks[19]="d19.jpg" daylinks[20]="d20.jpg" daylinks[21]="d21.jpg" daylinks[22]="d22.jpg" daylinks[23]="d23.jpg" daylinks[24]="d24.jpg" daylinks[25]="d25.jpg" daylinks[26]="d26.jpg" daylinks[27]="d27.jpg" daylinks[28]="d28.jpg" daylinks[29]="d29.jpg" daylinks[30]="d30.jpg" daylinks[31]="d31.jpg" var mydate=new Date() var today=mydate.getDate() document.write("<img src='" + daylinks[today] + "'>"); </script> </body></html> |
|
|