• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

About Page forwarding.

S

sshenriksen

Guest
#1
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
 

SPeedY_B

I may actually be insane.
#5
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 :)
 
K

Kw4ntuM

Guest
#6
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)
 

Members online

No members online now.

Latest posts

Latest profile posts

Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,014
Latest member
sanoravies