Script Categories

Menus and Navigation >>> Day Of Week Redirection.

If you would like to redirect your visitor to a different page for each day of the week, this script would be perfect. It will first detect what day of the week it is and then forward the visitor to the appropriate page.

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">      
/* Visit for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function initArray() {
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++)
this[i+1] = initArray.arguments[i];
var DOWArray = new
var today = new Date();
var day = DOWArray[today.getDay()+1];
alert("Today is " + day + "! If the file " + day + ".html had existed, you would have been taken there.");
window.location = day + ".html";
// End -->

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).