first, sorry i am newbie in webdesign
can anybody help me to built HTML file with javascript inside?
i wanna give typewriter text effect in my web, but it doesn't work

(
here're my html codes
<TITLE>
www.****.com </TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
background-image: url(image/178.jpg);
}
-->
</style></head>
<body>
<table width="622" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutDefaultTable-->
<tr>
<td width="331" height="306"> </td>
<td width="291"> </td>
</tr>
<tr>
<td height="58"> </td>
<td valign="top"> <script language="javascript"> var text="
in progress by no_nickname "
var bgcolor="black"
var textcolor="white"
var typespeed=65 var n=0
if (document.all||document.getElementById){
document.write('<font color="'+bgcolor+'">')
for (m=0;m<text.length;m++)
document.write('<span id="typo'+m+'">'
+text.charAt(m)+'</span>')
document.write('</font>')
}
else
document.write(text)
function crossref(number){
var crossobj=document.all?
eval("document.all.typo"+number) :
document.getElementById("typo"+number)
return crossobj
} function type(){
if (n==0){
for (m=0;m<text.length;m++)
crossref(m).style.color=bgcolor
}
crossref(n).style.color=textcolor
if (n<text.length-1)
n++
}
function typestart(){
if (document.all||document.getElementById)
typing=setInterval("type()",typespeed)
}
typestart()
else{
n=0
clearInterval(typing)
setTimeout("typestart()",1500)
return
}
</script> <!--DWLayoutEmptyCell--> </td>
</tr>
</table>
</body>
</html>
the red text is text that get typewriter effect
or i must spred the file?
one form for .html
and another in .js fomat?
thank you
