<html> <head> <script language="JavaScript"> function GetTodaysURL() { var locationlist = new URLList ( "1.html", // Monday "2.html", // Tuesday "3.html", "4.html", "5.html", "6.html", "7.html" // Sunday ); now = new Date(); num = now.getDay(); if (num == 0) num = 7; location.href = locationlist.list[num-1]; } function URLList () { var argv = URLList.arguments; var argc = argv.length; this.list = new Object(); for (var i = 0; i < argc; i++) this.list[i] = argv[i]; this.count = argc; return this; } </script> </head> <body> Пример кода, выбирающего <a href="javascript:GetTodaysURL()"> страницу этого дня</a>. Завтра будет показана другая страница. </body> </html>