<script language="javascript">
<!--
var delay=20;
var nextm=0;
var msg=new Array
(
'Herzlich Willkommen bei
www.ekiwi.de',
'Dieses JavaScript eignet sich gut...',
'für die Verwendung als Newsticker.'
);
function start_ticker()
{
do_ticker(msg[0], 0, 1);
}
function do_ticker(text, pos, dir)
{
var out='<font face="Arial, Helvetica" color=darkyellow>[ <font color=#000000><strong><font size=-1>'+text.substring(0, pos)+'</font></font></strong> ]</font>';
if(navigator.appName=="Netscape")
with(document.ticker.document)
{
open(); write(out); close();
}
else
ticker.innerHTML=out;
pos+=dir;
if(pos>text.length)
setTimeout('do_ticker("'+text+'",'+pos+','+(-dir)+')', delay*10);
else
{
if(pos<0)
{
if(++nextm>=msg.length)
nextm=0;
text=msg[nextm];
dir=-dir;
}
setTimeout('do_ticker("'+text+'",'+pos+','+dir+')', delay);
}
}
// -->
</script>
<body onload="start_ticker()">
<div id="ticker" style="position: absolute; top: 150; left: 160;"></div>
Diesen JavaScript will ich ![/code]