ERLEDIGT
NEIN
NEIN
ANTWORTEN
0
0
ZUGRIFFE
231
231
EMPFEHLEN
-
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
Ähnliche Themen
-
checkbox value auf andere checkbox übertragen
Von Smitmeit im Forum Visual Basic 6.0Antworten: 0Letzter Beitrag: 09.03.10, 14:39 -
Checkbox
Von ivopille im Forum VisualStudio & MFCAntworten: 1Letzter Beitrag: 18.06.08, 01:07 -
Checkbox
Von BitBurger im Forum Javascript & AjaxAntworten: 2Letzter Beitrag: 04.04.06, 14:06 -
Checkbox
Von III im Forum Visual Basic 6.0Antworten: 4Letzter Beitrag: 12.05.04, 07:21 -
Checkbox
Von magic_halli im Forum .NET ArchivAntworten: 2Letzter Beitrag: 11.02.04, 23:23





Zitieren
Login




