Farbeffekt mit IE und NS
Philip
- javascript
Hallo Browser-Spezialisten!
Lässt sich mein beigefügter Farbeffekt auch für Netscape realisieren? Wenn ja:
Welches JavaScript-Objekt muss benutzt werden? Das ALL-Objekt, das ich anwende,
funktioniert ja leider nur beim Explorer.
neugierige Grüße
Philip
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head>
<meta http-equiv="Content-Style-Type" content="text/css">
<title>ColorSlide</title>
<style type="text/css">
<!--
span
{ font-family:Verdana,Tahoma,Arial,Helvetica;
font-size:16px;
font-weight:bold }
//-->
</style>
<script language="JScript">
<!--
count=0;
rows = new Array("r0","r1","r2","r3","r4");
colors = new Array("#ffff99","#ffff66","#ffff00","#ffcc00","#ff9900",
"#ffff66","#ffff00","#ffcc00","#ff9900","#ffcc00",
"#ffff00","#ffcc00","#ff9900","#ffcc00","#ffff00",
"#ffcc00","#ff9900","#ffcc00","#ffff00","#ffff66",
"#ff9900","#ffcc00","#ffff00","#ffff66","#ffff99",
"#ffcc00","#ff9900","#ffcc00","#ffff00","#ffff66",
"#ffff00","#ffcc00","#ff9900","#ffcc00","#ffff00",
"#ffff66","#ffff00","#ffcc00","#ff9900","#ffcc00");
function SunShine()
{
for (x=0; x<5; x++)
{
document.all[rows[x]].style.color = colors[count+x];
}
count=count+5;
if (count==40)
{ count=0; }
window.setTimeout('SunShine()',75);
}
//-->
</script></head>
<body text=#ffffff bgcolor=#000000 onLoad="SunShine()">
<a href="mailto:TFBOX@telda.net"><span id="r0" style="color:#ff9900">Grmblfx!</span><br>
<span id="r1" style="color:#ffcc00">Die JavaScript-Array-Funktion SLICE();</span><br>
<span id="r2" style="color:#ffff00">funktioniert beim Explorer V4.0 nicht.</span><br>
<span id="r3" style="color:#ffff66">Nun muss ich hier mit einem aufgeblähten</span><br>
<span id="r4" style="color:#ffff99">Array für die Farbwerte arbeiten...</span></a></body></html>