Do you really want it to be _invisible_? Or do you want to hide it? If you
want to hide the whole <div> element, use "display" instead of "visibility".
Fong
> hi,
> i'm trying to add some dthml in a site but can't get it to work with
> netscape 6, here it is:
>
> <div id="testDiv" style="position:absolute;
> visibility:visible; background-color:#ff0000; width:100px;
> height:100px;">
> Can you see me?
> </div>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <a href="javascript: showme(0)" >show me</a>
>
> function showme(i) {
> if(i == 0)
> document.layers["testDiv"].visibility = "hide";
> }
>
> ---
>