Click to See Complete Forum and Search --> : visible/hidden option


Gunnar
08-03-2003, 08:39 AM
Hello,

I coded my page like this:
<div id="info"><table></table></div>
<div id="welcome"><table></table></div>
<div id="links"><table></table></div>
<div id="gb"><table></table></div>

Now I want to hide them all and only show 1 special. How can I do it? Will it run with Netscape/...

Thanks, Gunnar

Khalid Ali
08-03-2003, 09:08 AM
set the css property

visibility:hidden

and yes it will rin NS6+ browsers

Gunnar
08-03-2003, 09:12 AM
okay, but how can I show another table? Isn't there something like this:

function showtabele(id) {

document.all.style.visibility = 'hidden';
document.id.style.visibility = 'visible';

}

greets Gunnar

Khalid Ali
08-03-2003, 09:28 AM
this is how the logic will work.

pass the id of the table you want to be displayed.

loop throught the all idees

if(the id==idArray[x]){
document.getElementById(id).style.visibility="visible";
}else{
document.getElementById(id).style.visibility="hidden";
}

Gunnar
08-03-2003, 09:52 AM
:confused: loop :confused:

Sorry, Im beginner...

greets Gunnar