TwilightLinkable
Programmer
Hello there. I was able to find this code:
<html>
<head>
<title>Countdown Test</title>
<script type="text/javascript">
<!--
var countdownFrom=5; // number of seconds
var countdownwin;
var stp;
function CountDownStart(){
stp=setInterval("CountDownTimer('CountDownTime')",1000)
}
function CountDownTimer(id){
if(countdownFrom==0){
clearInterval(stp);
self.close();
}else{
var x;
var cntText='Closing in '+countdownFrom+' seconds';
if(document.getElementById){
x=document.getElementById(id);
x.innerHTML=cntText;
}else if(document.all){
x=document.all[id];
x.innerHTML=cntText;
}else if(document.layers){
x=document.NNCountDownTime;
x.document.write(cntText);
x.document.close();
}
}
countdownFrom--;
}
//-->
</script>
</head>
<body>
<div id="CountDownTime"><layer name="NNCountDownTime"></layer></div>
<script type="text/javascript">
<!--
window.onload=CountDownStart;
//-->
</script>
</body>
</html>
From this thread:
It works grate but I wanna have the viewer that is on the current web page to be redirected to a link that I linked them to. Also, is there an option where I can remove the timer visual from the web page and have it just say "Please Wait..."? That would be wonderful. Thanks!
<html>
<head>
<title>Countdown Test</title>
<script type="text/javascript">
<!--
var countdownFrom=5; // number of seconds
var countdownwin;
var stp;
function CountDownStart(){
stp=setInterval("CountDownTimer('CountDownTime')",1000)
}
function CountDownTimer(id){
if(countdownFrom==0){
clearInterval(stp);
self.close();
}else{
var x;
var cntText='Closing in '+countdownFrom+' seconds';
if(document.getElementById){
x=document.getElementById(id);
x.innerHTML=cntText;
}else if(document.all){
x=document.all[id];
x.innerHTML=cntText;
}else if(document.layers){
x=document.NNCountDownTime;
x.document.write(cntText);
x.document.close();
}
}
countdownFrom--;
}
//-->
</script>
</head>
<body>
<div id="CountDownTime"><layer name="NNCountDownTime"></layer></div>
<script type="text/javascript">
<!--
window.onload=CountDownStart;
//-->
</script>
</body>
</html>
From this thread:
It works grate but I wanna have the viewer that is on the current web page to be redirected to a link that I linked them to. Also, is there an option where I can remove the timer visual from the web page and have it just say "Please Wait..."? That would be wonderful. Thanks!