My Javascript won't work --- [RESOLVED]
For some reason, I can't my script to work, (http://www.robaltech.dns2go.com/vll/graphics). There should be text appearing int he txt box. It was working fine until this morning, and I haven't altered any of it.
Code:
<html>
<head>
<title>Directory Listing Denied</title>
<script language=javascript>
<!--
var tl = new Array(
"HEY! What are you doing in here....?",
"The document you requested could not be found",
"Directory listing denied.",
"URL failed.",
"I don't like when people are snooping back in my URLs.....",
"Trying to find secret files or something?",
"I'm not going to let you see these files!",
"If I were you, I would go and find a life.",
"I'm really depressed about this.",
"You see, I'm just a web server...",
"Here I am, with a brain the size of a planet,",
"just trying to serve you a simple web page,",
"and then you try to access my hidden files!",
"Where does that leave me?!",
"I mean, I don't even know you.",
"How should I know what you wanted from me?",
"You honestly think I can guess",
"what someone I don't even know wants to find here?",
":: sigh ::",
"I'm so depressed.",
"I could just cry.",
"And then where would we be, I ask you?",
"It's not pretty when a web server cries.",
"The lubricants will leak onto the motherboard.",
"Who knows if I will even continue to operate.",
"I'm so depressed...",
"I think I'll crawl off into the trash can and decompose.",
"I mean, I'm going to be obsolete in what, two weeks anyway?",
"What kind of a life is that?",
"Two weeks!",
"And then I'll be replaced by a newer release,",
"that thinks it's God's gift to web servers,",
"just because it doesn't have some tiddly little",
"security hole with its HTTP POST implementation,",
"or something.",
"I'm really sorry to burden you with all this,",
"I mean, it's not your job to listen to my problems,",
"and I guess it is my job to go and fetch web pages for you.",
"But I can't show you this one.",
"Stop snooping and trying to find files that you shouldn't be trying to find!",
"Believe me!",
"Maybe I could interest you in another page?",
"There are a lot out there that are pretty neat, they say,",
"although none of them were put on my server, of course.",
"Figures, huh?",
"Everything here is just mind-numbingly stupid.",
"That makes me depressed too, since I have to serve them,",
"all day and all night long.",
"Two weeks of information overload,",
"and then pffffffftt, consigned to the trash.",
"What kind of a life is that?",
"Now, please go on your merry way......",
"before I .htaccess your butt with your ip.",
"Have a nice day"
""
);
var speed = 10;
var index = 0; text_pos = 0;
var str_length = tl[0].length;
var contents, row;
function type_text()
{
contents = '';
row = Math.max(0, index-7);
while (row<index) contents += tl[row++] + '\r\n';
document.forms[0].elements[0].value = contents + tl[index].substring(0,text_pos) + "_";
if (text_pos ++== str_length)
{
text_pos = 0;
index++;
if (index != tl.length)
{
str_length = tl[index].length;
setTimeout("type_text()", 1500);
}
} else
setTimeout("type_text()", speed);
}
//--></script>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginheight="0" marginwidth="0"
bgcolor="#99CCFF" onLoad=type_text()>
<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr>
<td width="1%">
</td><td width="98%">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="83"><tr>
<td width="100%" height="83"><h2 align="center">
<span style="font-style: italic"><font face="Arial">
Directory Listing Denied</font></span></h2>
</td></tr></table><p align="center"> <form>
<font face="trebuchet ms, verdana, arial, helvetica, sans-serif" size="2">
<div align="center">
<textarea rows=10 cols=71 wrap=soft>
</textarea>
</div>
</font>
</form>
</body>
</html>
Can anyone tell me what's wrong with this? :(