Michael: Script für IE und Netscape

Beitrag lesen

hier das Script in abgespeckter Version etwas verspätet, irgendwie gab es ein Serverproblem. es muß schon unter mindestens Netscape 4 laufen.

Danke.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
 <title>Unbenannt</title>
 <script language="javaScript">
<!--
function check(i)
{
        if (document.getElementById("info" + i).checked == true)
        {
                document.getElementById("div" + i).style.display="block"
        }
        else
        {
                document.getElementById("div" + i).style.display="none"
        }
}
//-->
</script>

</head>

<body>

<input type="Checkbox" name="info3" onclick=check(3)>Architekten
<br>
<div id=div3 style="display:none">

<table border="0" width="*" cellspacing="0" cellpadding="0">
<tr>
    <td class="text1" align="50"><input type="Checkbox" name="arch_dach"></td>
    <td class="text1" width="60">Dach</td>
    <td class="text1" align="50"><input type="Checkbox" name="arch_wand"></td>
    <td class="text1" width="60">Wand</td>
    <td class="text1" align="50"><input type="Checkbox" name="arch_boden"></td>
    <td class="text1" width="60">Boden</td>
</tr>
</table>

</div>

</body>
</html>