Day of the Week Redirect
Use this code snippet to redirect your visitors to the web page that matches the day of the week. You can have a new page for each day of the week!
|
<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 weekDayArray = new; initArray("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); var today = new Date(); var day = weekDayArray[today.getDay()+1]; if (day == "Monday") window.location = "Monday.htm" if (day == "Tuesday") window.location = "Tuesday.htm" if (day == "Wednesday") window.location = "Wednesday.htm" if (day == "Thursday") window.location = "Thursday.htm" if (day == "Friday") window.location = "Friday.htm" if (day == "Saturday") window.location = "Saturday.htm" if (day == "Sunday") window.location = "Sunday.htm" //--> </SCRIPT> |
Free JavaScripts provided
by Winfolinx.com