Visible dos Div no NetScape

2 respostas
A

Boa tarde Comunidade,

Alguém poderia me ajudar.

Como que eu faço para alternar os visible de, por exemplo, 3 div`s diferentes no Netscape ??

Obrigado …

2 Respostas

A

Galera. :smiley:
Abaixo um fonte exemplo para alternar a Visibilidade entre DIV’s.
Funciona no I.E. e no Netscape , outros browser’s não testei. 8)


<div id="div01" style="display: none"> Mostrou 01 </div> <div id="div02" style="display: none "> Mostrou 02 </div> <div id="div03" style="display: none "> Mostrou 03 </div>
<script>

function fncAltera(NomeDIv){

document.getElementById(‘div01’).style.display = “none”;

document.getElementById(‘div02’).style.display = “none”;

document.getElementById(‘div03’).style.display = “none”;

document.getElementById(NomeDIv).style.display = “inLine”;

}

</script>




<span onClick=“fncAltera(‘div01’);”>[Mostra 01]</span>

<span onClick=“fncAltera(‘div02’);”>[Mostra 02]</span>

<span onClick=“fncAltera(‘div03’);”>[Mostra 03]</span>
*****************************

Falows … :stuck_out_tongue:

A

Galera. :smiley:
Abaixo um fonte exemplo para alternar a Visibilidade entre DIV’s.
Funciona no I.E. e no Netscape , outros browser’s não testei. 8)


<div id="div01" style="display: none"> Mostrou 01 </div> <div id="div02" style="display: none "> Mostrou 02 </div> <div id="div03" style="display: none "> Mostrou 03 </div>
<script>

function fncAltera(NomeDIv){

document.getElementById(‘div01’).style.display = “none”;

document.getElementById(‘div02’).style.display = “none”;

document.getElementById(‘div03’).style.display = “none”;

document.getElementById(NomeDIv).style.display = “inLine”;

}

</script>




<span onClick=“fncAltera(‘div01’);”>[Mostra 01]</span>

<span onClick=“fncAltera(‘div02’);”>[Mostra 02]</span>

<span onClick=“fncAltera(‘div03’);”>[Mostra 03]</span>
*****************************

Falows … :stuck_out_tongue:

Criado 8 de março de 2004
Ultima resposta 10 de mar. de 2004
Respostas 2
Participantes 1