Im inserting a news bulletin on my message board and here how i made the script,
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
<script>
<!--
function laufschrift (seed) {
var m1= "JavaScript-Workshop";
var m2= "07.07.98";
var leer= " ";
var m3= "*** HAVE FUN ! ***";
var msg= m3+leer+leer+m1+leer+m2+leer+leer+m3;
var out= ""; var j; var cmd;
if (seed > 100) {
seed--;
cmd= "laufschrift (" + seed + ")";
setTimeout (cmd, 100);
}
else if (seed < 1) {
if (-seed < msg.length) {
out+= msg.substring (-seed, msg.length);
document.fenster.scroll.value = out;
seed--;
cmd= "laufschrift (" + seed + ")";
setTimeout (cmd, 100);
}
else {
document.fenster.scroll.value = " ";
setTimeout ("laufschrift (100)", 75);
}
}
else {
for (j= 0; j < seed; j++) { out+= " "; }
out+= msg;
document.fenster.scroll.value = out;
seed--;
cmd= "laufschrift (" + seed + ")";
window.setTimeout (cmd, 100);
}
}
<input type="text" name="youtextfield" value="" unselected style="width:500px; background-color:#000000; color:#000000; color:#cccccc:">
How are you doing today? Welcome to Enhance-Gaming.. !! Have fun and enjoy.. !!
// -->
</SCRIPT>
</head>
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}" topmargin=0 onload="javascript:functionname(laufschrift)">
Im new at java but i have the basics down… !!
ps when i went to the board, no luk with this, is something in the wrong place? Is functionname in the right place and labeled right? thx