hcrosex3
11-19-2012, 05:26 PM
i currently have this script that redirects after timeout back to the previous page. How can I set it go to a specific page (index.html)? Also is it possible to show a countdown of the timeout timer on the page?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en"><head><title>404 - Page Not Found</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta name="revisit-after" content="37 days">
<meta name="robots" content="INDEX, NOFOLLOW">
<meta name="keywords" content="404, not found, page not found, error, errors, server error">
<meta name="description" content="Ugh, 404 - dude, that does _NOT_ compute.">
<meta http-equiv="Imagetoolbar" content="no">
<script>
<!--
if (top.location != self.location) top.location.replace(self.location);
//-->
</script>
<style>
<!--
body { overflow-Y:auto; }
a { text-decoration:none; }
-->
</style></head>
<body topmargin="9" leftmargin="11" scroll="auto" onload="typeout(); window.defaultStatus=''; return true" bgcolor="black" marginheight="9" marginwidth="11" text="silver">
<!--<div id="404" align=center><font size=7 color="#000099">404</font></div>-->
<layer id="talkyNS4"></layer><div id="talky"><font color="silver" face="fixedsys, terminal, system, liquidcrystal, led real, joystix, cosmic alien, westminster, glitch1, monospace" size="3">C:\\ROSE> Hey I'M TRYING TO TALK HERE! Did I ever tell you about the<br>C:\>(abort)<br><br><font color="#33cc00">RETURNING TO PREVIOUS PAGE...</font><br><br><font color="silver">C:\\ROSE> DAMMIT! <big><big><font color="black">.</font></big></big><big> DARN IT! <big>DARN IT!!</big></big></font><br></font></div>
<noscript>
<pre><font face="fixedsys, terminal, system, liquidcrystal, led real,
joystix, cosmic alien, westminster, glitch1, monospace"
size=3>C:\\ROSE> query result: 404 - error
C:\\ROSE> Ugh, 404 - that does _NOT_ compute.
C:\\ROSE> Page not found, dude. Well that just makes my day.
C:\\ROSE> You know I spend all my time writing scripts,
C:\\ROSE> spitting out web-pages, and now THIS.
C:\\ROSE> So when is that webmaster gonna come in here
C:\\ROSE> and fix up all these broken links?
C:\\ROSE> And hey - YOU! Big Cheese with the mouse:
C:\\ROSE> if you typed in the URL, check you're spelling!
C:\\ROSE> Oops, I mean check your spelling!!
C:\\ROSE> Geez, it's no wonder I have an attitude.
C:\\ROSE> You know some days I feel like I could just break down
C:\\ROSE> and crash. That's it. Kaput. Bye-Bye. Gone to sleep.
</font></pre>
</noscript>
<script>
<!--Inspired by Darcy Boucher
runon = new Array
(
" C:\\> query result: error - 404<br>",
" C:\\ROSE> Ugh, 404. That does _NOT_ compute.<br>",
" C:\\ROSE> Well that just makes my day. Page not found, dude.<br>",
" C:\\ROSE> You know I spend all my time writing scripts,",
" C:\\ROSE> spitting out web-pages, and now THIS.<br>",
" C:\\ROSE> So when is that webmaster gonna come in here",
" C:\\ROSE> and fix up all these broken links?<br>",
" C:\\ROSE> Geez it's no wonder I have an attitude.<br>",
" C:\\ROSE> And hey - YOU! Big Cheese with the mouse:",
" C:\\ROSE> if you typed in the URL, check you're spelling!",
" C:\\ROSE> Oops, I mean check your spelling!!<br>",
" C:\\ROSE> Hey, you still there? Good.",
" C:\\ROSE> You know some days I feel like I could just break down",
"*C:\\ROSE> and crash. That's it. Kaput. Bye-Bye. Gone to sleep.<br>",
" C:\\ROSE> Heheheh... Scared you didn't I? I love playing little jokes",
" C:\\ROSE> like that. But boy the things I have to put up with - I could",
" C:\\ROSE> go on and on and hey! Did I ever tell you about the time that",
" C:\\>(abort)<br>",
"%<a href='javascript:void(0)' onMouseover='flagged(\"%\"); window.status=defaultStatus; return true' style='text-decoration:none' hideFocus><font color='#33CC00'>RETURN TO PREVIOUS PAGE...</font></a>",
" C:\\ROSE> No wait! Don't click on the link yet. Did I ever tell you",
" C:\\ROSE> about the",
" C:\\>(abort)<br>",
"%<a href='javascript:void(0)' onMouseover='window.status=defaultStatus; return true' onMousedown='flagged(\"%\")' style='text-decoration:none' onFocus='if(this.blur)this.blur();' hideFocus><font color='#33CC00'>RETURN TO PREVIOUS PAGE...</font></a>",
" C:\\ROSE> Hey I'M TRYING TO TALK HERE! Did I ever tell you about the",
//" C:\\ROSE> Hey I'M TRYING TO TALK HERE!",
//"C:\\ROSE> Did I ever tell you about the",
" C:\\>(abort)<br>",
" <font color='#33CC00'>RETURNING TO PREVIOUS PAGE...</font><br>",
"&<font color=silver>C:\\ROSE> UGGHHH! <big><big><font color=black>.</font></big></big>",
"&<big>DARN IT! ",
"&<big>DARN IT!!</big></big></font>"//kluge font
)
OP = (navigator.userAgent.indexOf("pera") != -1)
IE = document.all && !OP
NS4 = document.layers
gebi= (document.getElementById && !document.all)
ihtml= document.body && (typeof document.body.innerHTML != "undefined")
//preserve order!
ramble = (NS4)?document.talkyNS4.document :(!ihtml)?document :(IE)?document.all.talky :document.getElementById("talky")
fonttag = "<font face='fixedsys, terminal, system, liquidcrystal, led real, joystix, cosmic alien, westminster, glitch1, monospace' size=3 color=silver>"
preform = fonttag
//flag=false
if (NS4)
{
document.captureEvents(Event.MOUSEMOVE);
document.captureEvents(Event.KEYDOWN);//nograb ALT
}
//document.onmousemove = flagged
document.onkeydown = flagged
function flagged(hand)
{
if (flag)
{
base = 600
typeout()
}
if (hand && (hand == "%"))
{
preform = fonttag
base = 600
typeout()
}
}
line = 0
base = 1800
function typeout()
{
document.onmousemove = null//kill OP6 multitrigs
flag = false
stripline = runon[line].substring(1, runon[line].length)
if (ihtml) ramble.innerHTML = preform+stripline+ "<br></font>";
else{
if (!NS4) ramble.writeln("<body bgcolor=black>");
ramble.writeln(preform+stripline+ "<br></font>")
if (!NS4) ramble.writeln("</body>");
ramble.close()
}
preform = preform+stripline+ ((runon[line].charAt(0) == "&")?"" :"<br>")
if (line < runon.length-1)
{
if (runon[line].charAt(0) == "*"){ flag = true; document.onmousemove = flagged }
else if (runon[line].charAt(0) == "%") flag = false;
else{
wait = (runon[line].lastIndexOf("<br>") != -1)?base :50
base = base + 200
setTimeout("typeout()", wait)
}
line = line+1
}
else if (self.history.length > 0) setTimeout("self.history.back(1)", 425);
else if (self.close) { opener = self; setTimeout("self.close()", 425); }
}
//document.onload = typeout();
//-->
</script>
<!--0408220511-->
</body></html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en"><head><title>404 - Page Not Found</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta name="revisit-after" content="37 days">
<meta name="robots" content="INDEX, NOFOLLOW">
<meta name="keywords" content="404, not found, page not found, error, errors, server error">
<meta name="description" content="Ugh, 404 - dude, that does _NOT_ compute.">
<meta http-equiv="Imagetoolbar" content="no">
<script>
<!--
if (top.location != self.location) top.location.replace(self.location);
//-->
</script>
<style>
<!--
body { overflow-Y:auto; }
a { text-decoration:none; }
-->
</style></head>
<body topmargin="9" leftmargin="11" scroll="auto" onload="typeout(); window.defaultStatus=''; return true" bgcolor="black" marginheight="9" marginwidth="11" text="silver">
<!--<div id="404" align=center><font size=7 color="#000099">404</font></div>-->
<layer id="talkyNS4"></layer><div id="talky"><font color="silver" face="fixedsys, terminal, system, liquidcrystal, led real, joystix, cosmic alien, westminster, glitch1, monospace" size="3">C:\\ROSE> Hey I'M TRYING TO TALK HERE! Did I ever tell you about the<br>C:\>(abort)<br><br><font color="#33cc00">RETURNING TO PREVIOUS PAGE...</font><br><br><font color="silver">C:\\ROSE> DAMMIT! <big><big><font color="black">.</font></big></big><big> DARN IT! <big>DARN IT!!</big></big></font><br></font></div>
<noscript>
<pre><font face="fixedsys, terminal, system, liquidcrystal, led real,
joystix, cosmic alien, westminster, glitch1, monospace"
size=3>C:\\ROSE> query result: 404 - error
C:\\ROSE> Ugh, 404 - that does _NOT_ compute.
C:\\ROSE> Page not found, dude. Well that just makes my day.
C:\\ROSE> You know I spend all my time writing scripts,
C:\\ROSE> spitting out web-pages, and now THIS.
C:\\ROSE> So when is that webmaster gonna come in here
C:\\ROSE> and fix up all these broken links?
C:\\ROSE> And hey - YOU! Big Cheese with the mouse:
C:\\ROSE> if you typed in the URL, check you're spelling!
C:\\ROSE> Oops, I mean check your spelling!!
C:\\ROSE> Geez, it's no wonder I have an attitude.
C:\\ROSE> You know some days I feel like I could just break down
C:\\ROSE> and crash. That's it. Kaput. Bye-Bye. Gone to sleep.
</font></pre>
</noscript>
<script>
<!--Inspired by Darcy Boucher
runon = new Array
(
" C:\\> query result: error - 404<br>",
" C:\\ROSE> Ugh, 404. That does _NOT_ compute.<br>",
" C:\\ROSE> Well that just makes my day. Page not found, dude.<br>",
" C:\\ROSE> You know I spend all my time writing scripts,",
" C:\\ROSE> spitting out web-pages, and now THIS.<br>",
" C:\\ROSE> So when is that webmaster gonna come in here",
" C:\\ROSE> and fix up all these broken links?<br>",
" C:\\ROSE> Geez it's no wonder I have an attitude.<br>",
" C:\\ROSE> And hey - YOU! Big Cheese with the mouse:",
" C:\\ROSE> if you typed in the URL, check you're spelling!",
" C:\\ROSE> Oops, I mean check your spelling!!<br>",
" C:\\ROSE> Hey, you still there? Good.",
" C:\\ROSE> You know some days I feel like I could just break down",
"*C:\\ROSE> and crash. That's it. Kaput. Bye-Bye. Gone to sleep.<br>",
" C:\\ROSE> Heheheh... Scared you didn't I? I love playing little jokes",
" C:\\ROSE> like that. But boy the things I have to put up with - I could",
" C:\\ROSE> go on and on and hey! Did I ever tell you about the time that",
" C:\\>(abort)<br>",
"%<a href='javascript:void(0)' onMouseover='flagged(\"%\"); window.status=defaultStatus; return true' style='text-decoration:none' hideFocus><font color='#33CC00'>RETURN TO PREVIOUS PAGE...</font></a>",
" C:\\ROSE> No wait! Don't click on the link yet. Did I ever tell you",
" C:\\ROSE> about the",
" C:\\>(abort)<br>",
"%<a href='javascript:void(0)' onMouseover='window.status=defaultStatus; return true' onMousedown='flagged(\"%\")' style='text-decoration:none' onFocus='if(this.blur)this.blur();' hideFocus><font color='#33CC00'>RETURN TO PREVIOUS PAGE...</font></a>",
" C:\\ROSE> Hey I'M TRYING TO TALK HERE! Did I ever tell you about the",
//" C:\\ROSE> Hey I'M TRYING TO TALK HERE!",
//"C:\\ROSE> Did I ever tell you about the",
" C:\\>(abort)<br>",
" <font color='#33CC00'>RETURNING TO PREVIOUS PAGE...</font><br>",
"&<font color=silver>C:\\ROSE> UGGHHH! <big><big><font color=black>.</font></big></big>",
"&<big>DARN IT! ",
"&<big>DARN IT!!</big></big></font>"//kluge font
)
OP = (navigator.userAgent.indexOf("pera") != -1)
IE = document.all && !OP
NS4 = document.layers
gebi= (document.getElementById && !document.all)
ihtml= document.body && (typeof document.body.innerHTML != "undefined")
//preserve order!
ramble = (NS4)?document.talkyNS4.document :(!ihtml)?document :(IE)?document.all.talky :document.getElementById("talky")
fonttag = "<font face='fixedsys, terminal, system, liquidcrystal, led real, joystix, cosmic alien, westminster, glitch1, monospace' size=3 color=silver>"
preform = fonttag
//flag=false
if (NS4)
{
document.captureEvents(Event.MOUSEMOVE);
document.captureEvents(Event.KEYDOWN);//nograb ALT
}
//document.onmousemove = flagged
document.onkeydown = flagged
function flagged(hand)
{
if (flag)
{
base = 600
typeout()
}
if (hand && (hand == "%"))
{
preform = fonttag
base = 600
typeout()
}
}
line = 0
base = 1800
function typeout()
{
document.onmousemove = null//kill OP6 multitrigs
flag = false
stripline = runon[line].substring(1, runon[line].length)
if (ihtml) ramble.innerHTML = preform+stripline+ "<br></font>";
else{
if (!NS4) ramble.writeln("<body bgcolor=black>");
ramble.writeln(preform+stripline+ "<br></font>")
if (!NS4) ramble.writeln("</body>");
ramble.close()
}
preform = preform+stripline+ ((runon[line].charAt(0) == "&")?"" :"<br>")
if (line < runon.length-1)
{
if (runon[line].charAt(0) == "*"){ flag = true; document.onmousemove = flagged }
else if (runon[line].charAt(0) == "%") flag = false;
else{
wait = (runon[line].lastIndexOf("<br>") != -1)?base :50
base = base + 200
setTimeout("typeout()", wait)
}
line = line+1
}
else if (self.history.length > 0) setTimeout("self.history.back(1)", 425);
else if (self.close) { opener = self; setTimeout("self.close()", 425); }
}
//document.onload = typeout();
//-->
</script>
<!--0408220511-->
</body></html>