Hi
Ich hab mal schnell ein JS geschrieben, das die Textfarbe einer Seite dauernd ändern soll.
Beim IE funktioniert anscheinend alles reibungslos, aber NS bleibt stur bei schwarzem Text.
Kann NS von Haus aus die Textfarbe nicht ändern, oder hab ich wo einen Denkfehler in mein JS eingebaut?
Bin für jede Hilfe dankbar.
Danke
Andreas
<script language="JavaScript">
<!--
var colors = new Array("990000","990099","cc00cc","ff00cc","003399","6633ff","006633","336666","666633","009966","cc9933","ff9933","00cc66","99cc33","ff6633","cc3366");
var counter = 0;
var colored = 0;
function anima()
{
if(colored==0)
{
document.fgColor = "ffffff";
}
else
{
document.fgColor = colors[(++counter % colors.length) - 1];
window.setTimeout("anima()", 100);
}
}
function setAnima(status)
{
if(status==false)
{
colored = 0;
}
else
{
colored = 1;
window.setTimeout("anima()", 100);
}
}
//-->>
</script>