Guest Oyama Posted August 2, 2004 Report Share Posted August 2, 2004 E ae Galera!!Bom é o seguinte gostaria de saber , como faço uma função em Javascript para dar um Hidden em uma layer...Function esconde(){??????}ValeuOyama Quote Link to comment Share on other sites More sharing options...
0 Fabi SP Posted August 2, 2004 Report Share Posted August 2, 2004 nomeDoDiv.style.display = "none"; Quote Link to comment Share on other sites More sharing options...
0 Guest Guest Posted August 2, 2004 Report Share Posted August 2, 2004 Maravilha !! Obrigado ..Bjos Quote Link to comment Share on other sites More sharing options...
0 Error404 Posted August 2, 2004 Report Share Posted August 2, 2004 Daria pra muda a visibility também, não?NomeDaDiv.style.visibility = 'hidden'; //pra esconderNomeDaDiv.style.visibility = 'visible'; //pra mostrar Quote Link to comment Share on other sites More sharing options...
0 Fabi SP Posted August 2, 2004 Report Share Posted August 2, 2004 Yup, são duas alternativas... Quote Link to comment Share on other sites More sharing options...
0 John Doe Posted August 2, 2004 Report Share Posted August 2, 2004 Mas não são iguais Quote Link to comment Share on other sites More sharing options...
0 Fabi SP Posted August 2, 2004 Report Share Posted August 2, 2004 Verdade...O "visibility" apenas trata a visibilidade (dãh pra mim) do elemento, enquanto que o "display" tira o elemento do "fluxo" do HTML...Para o "visilibity: hidden;" dar o mesmo efeito do "display:none;" é necessário mexer também no atributo "position" do elemento. Neste caso, setar para "position: absolute;".Assim, o elemento fica invisível e fora do fluxo... Quote Link to comment Share on other sites More sharing options...
0 Error404 Posted August 2, 2004 Report Share Posted August 2, 2004 Hmmm... vivendo e aprendendo! Quote Link to comment Share on other sites More sharing options...
Question
Guest Oyama
E ae Galera!!
Bom é o seguinte gostaria de saber , como faço uma função em Javascript para dar um Hidden em uma layer...
Function esconde(){
??????
}
Valeu
Oyama
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.