Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: dhtml and javascript in netscape 6


Message #1 by soni29@h... on Wed, 31 Jul 2002 18:13:19
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;"&gt;
>       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";
> }
> 
> ---
> 

  Return to Index