Click to See Complete Forum and Search --> : browser errors


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

ukemike
08-20-2003, 12:34 PM
and the weird thing is. is that it works perfectly when i have the index.html on my computer and start it up in explorer, but when i put it on geocities thats when its giving me errors

Khalid Ali
08-20-2003, 12:35 PM
No erros for me in IE6

post the geocities url here

ukemike
08-20-2003, 12:41 PM
www.geocities.com/ukemike/index.html

Khalid Ali
08-20-2003, 01:13 PM
use the following function..if you still get erros that means the webhosting company's added code is screwing up with urs

function do_it(){
if (x>8){
var rr = clearTimeout(bb);
document.title = "my title";
var xxx2 = document.getElementById('status');
return;
} else {
new_string = new_string + my_string.charAt(x);
x++;
var xxx = document.getElementById('fun');
xxx.innerHTML = new_string;
var bb = setTimeout("do_it();", 50);
}
}

ukemike
08-21-2003, 11:16 AM
yeah i think its something wid the webhoster's code. **** it im moving to angelfire.

thanx for your help
mike