About Page forwarding.

S

sshenriksen

Guest
When some companies get a new homepage, their old page will "Forward you in 5 sec. or click here if it doesn't"

How do you send somebody to a a new page?

Sune
 
Here is what I use fro http://news.inmatrix.com

Code:
<HTML>
<HEAD>
<title>Infomatrix News</title>
<meta http-equiv="refresh" content="0; url=http://news.inmatrix.com/news/index.shtml">
</HEAD>
<BODY BGCOLOR="#ECECEC">
</body>
</html>
 
I use the meta version and a nice flabby javascript version too

Code:
<body bgcolor=#ffffff text=#000000 link=#000000 alink=#000000 vlink=#000000 onLoad="settimes()"> 
<script language=JavaScript>
function display() { 
	rtime=etime-ctime;
	if (rtime>60)
		m=parseInt(rtime/60);
	else {
		m=0;
	}
	s=parseInt(rtime-m*60);
	if(s<10)
		s="0"+s;
	window.status=+s;
	window.setTimeout("checktime()",1000);
}

function settimes() {
	var time= new Date();
	hours= time.getHours();
	mins= time.getMinutes();
	secs= time.getSeconds();
	etime=hours*3600+mins*60+secs;
	etime+= 25;
	checktime();
}

function checktime() {
	var time= new Date();
	hours= time.getHours();
	mins= time.getMinutes();
	secs= time.getSeconds();
	ctime=hours*3600+mins*60+secs
	if(ctime>=etime) 
		expired();
	else
		display();
}


function expired() {
	window.status="Refreshing...";
	window.location.reload()
}

</script>
i prefer the java one for my web cam page(s) refresh, as it adds a niffy timer to the status bar :)
 
i believe there is a simple dreamweaver plug in for this if anyone cares, check out massimocorner.com(i think the url is right...but its a fairly tempermental sight)
 
if you use ASP, use response.redirect("URL")

so easy
 

Members online

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back