ukemike
08-20-2003, 12:19 PM
Hey guys could u tell me why this page is giving me an error in explorer. it says error on line 2. but i cant figure out why.
<HTML>
<head>
<TITLE> welcome to hell</TITLE>
</head>
<style>
#fun {position:absolute;
display: block;
left: 200px;
top: 100px;
width: 600px;
text-align: center;
text-decoration: none;
font-family:courier;
font-size:12px;
color: red;
BORDER: NONE;
}
#status {position: absolute;
left: 400px;
top: 200px;
width: 200px;
text-align: center;
color: red;
BORDER: 1 px solid green;
font-family: arial
font-size: 10px;
}
</style>
<script>
my_string = "test text";
new_string = "";
var x = 0;
function do_it()
{
if (x>8)
{
var rr = clearTimeout(bb);
document.title = "my title";
var xxx2 = document.all['status'];
return;
} else {
new_string = new_string + my_string.charAt(x);
x++;
var xxx = document.all['fun'];
xxx.innerHTML = new_string;
var bb = setTimeout("do_it();", 50);
}
}
</script>
<BODY BGCOLOR="black" text="red" link="sienna" vlink="gray" alink="white">
<body onload="do_it();">
<font size=-1>
<div id="fun"></div>
<div id="status"></div>
</font>
</BODY>
</HTML>
thank you
<HTML>
<head>
<TITLE> welcome to hell</TITLE>
</head>
<style>
#fun {position:absolute;
display: block;
left: 200px;
top: 100px;
width: 600px;
text-align: center;
text-decoration: none;
font-family:courier;
font-size:12px;
color: red;
BORDER: NONE;
}
#status {position: absolute;
left: 400px;
top: 200px;
width: 200px;
text-align: center;
color: red;
BORDER: 1 px solid green;
font-family: arial
font-size: 10px;
}
</style>
<script>
my_string = "test text";
new_string = "";
var x = 0;
function do_it()
{
if (x>8)
{
var rr = clearTimeout(bb);
document.title = "my title";
var xxx2 = document.all['status'];
return;
} else {
new_string = new_string + my_string.charAt(x);
x++;
var xxx = document.all['fun'];
xxx.innerHTML = new_string;
var bb = setTimeout("do_it();", 50);
}
}
</script>
<BODY BGCOLOR="black" text="red" link="sienna" vlink="gray" alink="white">
<body onload="do_it();">
<font size=-1>
<div id="fun"></div>
<div id="status"></div>
</font>
</BODY>
</HTML>
thank you