Hallo Gunnar,
function Grau(test) {document.[test].style.backgroundColor = "rgb(230, 230, 230);";}
Lies noch mal in http://de.selfhtml.org/javascript/objekte/style.htm das Beispiel für DOM-Syntax.
Naja, der style-Teil ist ja so in Ordnung. Was zu verbessern ist, ist der Zugriff auf das Element selbst. Einfacher wäre hier natürlich Grau(self) und self.style.
Viele Grüße aus Freiburg,
Marian
--
Microsoft broke Volkswagen's world record: Volkswagen made only 22 million bugs!
<!--[if IE]><meta http-equiv="refresh" content="0; URL=http://www.getfirefox.com"><[endif]-->
Microsoft broke Volkswagen's world record: Volkswagen made only 22 million bugs!
<!--[if IE]><meta http-equiv="refresh" content="0; URL=http://www.getfirefox.com"><[endif]-->