[thelist] Netscape 6/7- trouble with style.display= changing the layout!

Peter-Paul Koch gassinaumasis at hotmail.com
Tue Sep 3 14:36:01 CDT 2002


><SCRIPT type="text/javascript" language="Javascript">
>    function hidethem() {
>       for (var ii = 5; ii<7; ii++) {
>          var obj = document.getElementById("node" + ii);
>          obj.style.display = "none";
>       }
>    }
>    function showthem() {
>       for (var ii = 5; ii<7; ii++) {
>          var obj = document.getElementById("node" + ii) ;
>          obj.style.display = "block";
>       }
>    }
></SCRIPT>
></HEAD>
><BODY>
><TABLE CELLSPACING='0' CELLPADDING='0' BORDER='0' id="node4"><TR><TD>First
>table</TD></TR></TABLE>

So you're trying to display a TABLE, not a TR. Theoretically

display: table

would do the trick, though I never tried it. I'm reasonably sure that
display: block works on TR's in NN6.2 and up.

ppk

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx




More information about the thelist mailing list