Link To Day URL

[Total: 0    Average: 0/5]

This script has the day of the week in the url.

Body Code:

This link has the day of the week in it.
<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("sunday","monday","tuesday","wednesday","thursday","friday","saturday");

var now = new Date();
var day = dowArray[now.getDay()+1];

/* uncomment the next line to have it go to that page automatically */
// self.location = day + ".html"; 

document.write('<a href="'+day+'.html">click me - '+day+'</a>');

// -->
</SCRIPT>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *