Hallo Leute,

kann es sein, dass der Firefox ein Problem mit der Anweisung 'style.backgroundColor' auf eine Checkbox hat? Im IE6, IE7, sowie Opera 9.2 funktioniert das Ganze.

Hier ein kleines Beispiel:
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript">
function test() {
    document.request.agb.style.backgroundColor = "#ff0000";
}
</script>
 
</head>
 
<body>
<form id="request" name="request" method="post" action="">
  <input type="checkbox" name="agb" id="agb" />
</form>
 
<a href="javascript:test()">link</a>
</body>
</html>

Gruß
furchu