Countdown To Page Relocation


You will be transfered in: 

To make use of this script, copy these lines into your <head></head> tag. The only thing that you need to change is YOUR REDIRECTING LINK. 

<SCRIPT LANGUAGE="JavaScript">
<!-- Hide from old browsers
// Copyright  1999 Doug Popeney
// Created by Doug Popeney (easyjava@easyjavascipt.com)
// JavaScript Made Easy!! - http://www.easyjavascript.com

function startTimer(){
	var time= new Date();
	hours= time.getHours();
	mins= time.getMinutes();
	secs= time.getSeconds();
	closeTime=hours*3600+mins*60+secs;
	closeTime+=10;  
	Timer();
}

function Timer(){
	var time= new Date();
	hours= time.getHours();
	mins= time.getMinutes();
	secs= time.getSeconds();
	curTime=hours*3600+mins*60+secs
	if(curTime>=closeTime)
	location = "YOUR REDIRECTING LINK"
	else
		timeLeft();
}

function timeLeft(){
	count = closeTime-curTime;
	document.timer.counter.value = count + " secs."
	window.setTimeout("Timer()",1000)
}
// -->
</SCRIPT>
Now put this inside your body code. 

<body onLoad="startTimer()">

An example is:
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="startTimer()">
or 
<body onLoad="startTimer()"> 

Now put this where ever you want in your HTML document 

<form name="timer">
<input type=text value="" name="counter" size=7></form>
