<html>
<body>
<SCRIPT type='text/javascript'>
bannerid = null;
ctrlwidth =70;
str = "СТРОКА";
function out(msg){
msg = " --- "+msg;
newmsg = msg;
while (newmsg.length < ctrlwidth) {newmsg += msg}
document.Outmsg.outmsg.value=newmsg;
rollmsg();
}
function rollmsg(){
NowMsg=document.Outmsg.outmsg.value
NowMsg=NowMsg.substring(1,NowMsg.length)+NowMsg.substring(0,1)
document.Outmsg.outmsg.value = NowMsg
bannerid=setTimeout("rollmsg()",100)
}
document.write ('<FORM NAME="Outmsg">');
document.write ('<CENTER><INPUT type="text" NAME="outmsg" VALUE= "'+str+'" SIZE= '+ctrlwidth+'><br>');
document.write ('<INPUT type="text" NAME="outmsgOrig" VALUE= "'+str+'" SIZE= '+ctrlwidth+' onkeyup="clearTimeout(bannerid); out(this.value);"></CENTER>');
document.write ('</FORM>');
out(str);
</script>
</script>
</body>
</html>
П.С. отвыкай называть функции так же как элементы...