On Jul 2, 9:51*pm, SAM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
wrote:
Jorge a écrit :
document.body.style.visibility= "hidden";
(document.getElementById('centerPage')).style.visi bility= "visible";
With an other way that could interest the OP :
* - remove all divs and show the right one
Variante 1 : <http://cjoint.com/?hcvUjZSFGt>
Variante 2 : <http://cjoint.com/?hcvWd8I0zj>
Good idea. I have mixed all 3 in a single file :
http://tinyurl.com/64h5x2
1.- Hide by setting style.visibility= "hidden"
2.- Hide by extracting the element out of document.body.
3.- Hide by setting style.display= "none".
But the OP question still remains unanswered : if
document.body.style.display === "none", is there a way to override
this setting on an inner element ?
I don't know the answer.
I know that document.body.style.visibility= "hidden" can be easily
overriden on an inner element just by setting the element's
style.visibility= "visible". How can this be done if
document.body.style.display === "none" ?
I leave to you the opportunity to get time(s) of execution ;-)
8-)
--Jorge