Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: hiding elements on netscape


Message #1 by "marc cardenas" <marclena@h...> on Tue, 11 Feb 2003 14:21:05
It's just something that comes from this mail server...
Just ignore it and delete it.

/Robert


-----Original Message-----
From: marc cardenas [mailto:marclena@h...]
Sent: den 11 februari 2003 15:38
To: JavaScript HowTo
Subject: [javascript_howto] RE: hiding elements on netscape


Thanks.
What does the 3D means?
> Depends on what version of Netscape you're talking about.
For Netscape 4 you have to put the content in a layer and then show and
hide it. As in:

<div id=3D3D"theDiv" style=3D3D"position:absolute; left:0px; top:0px;
width:100px">Content</div>

document.layers["theDiv"].visibility =3D3D "visible";
document.layers["theDiv"].visibility =3D3D "hidden";

For Netscape 6+ (and all other Gecko.based, as well as standardcompliant
browsers):
(This will work with any element)

<div id=3D3D"theDiv" style=3D3D"position:absolute; left:0px; top:0px;
width:100px">Content</div>

document.getElementById("theDiv").style.visibility =3D3D "visible";
document.getElementById("theDiv").style.visibility =3D3D "hidden";

or (to get it not to occupy any screen space when you hide it):

document.getElementById("theDiv").style.display =3D3D "block";
document.getElementById("theDiv").style.display =3D3D "none";


/Robert



-----Original Message-----
From: marc cardenas [mailto:marclena@h...]=3D20
Sent: den 11 februari 2003 15:21
To: JavaScript HowTo
Subject: [javascript_howto] hiding elements on netscape


Hi,
I would like to know how can I put the visibility of an element to true
or=3D20 false dinamically on netscape.

Thanks
---
Change your mail options at http://p2p.wrox.com/manager.asp or=3D20 to
unsubscribe send a blank email to 

  Return to Index