5
the whole code
<html>
<head>
<script language="Javascript" type="text/javascript">
<!--
var tl=new Array(
"Welcome to my site.",
"you can find some XOOPS hack here,",
"and you can also see some sports video here.",
"...............",
"#$%&@#",
);
var speed=60;
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++] + 'rn';
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 bgcolor='#ffffff' text='#000000' alink='#ff0000' vlink='#00007f' link='#0000ff' onLoad="type_text();">
<table border="0" cellpadding="0" cellspacing="0" align="center" height="100%" width="100%">
<tr><td align="center" valign="middle">
<h2>err ...... </h2>
<form><textarea rows="10" cols="60" wrap="soft"></textarea></form>
<br /><br />
<a href="http://gary711.idv.st"> - gary711 - </a></td></tr>
</table>
</body>
</html>
can you tell me how to including the javascript in my theme and use the theme's html body "onLoad" element
thanx for helping me