2 funções
estou tentando executar 2 funções js mas apenas uma funciona...
ao clicar em aparecer a div com frame:
<HTML>
<HEAD>
<script type="text/javascript">var div = "1";
function AparecerDiv(){ // função aparecer
document.getElementById(div).style.display = "block";
}
</script>
<script type="text/javascript">var div = "2";
function AparecerDiv2(){ // função aparecer
document.getElementById(div).style.display = "block";
}
</script>
</HEAD>
<BODY>
<span onClick="AparecerDiv();" style="cursor: pointer;">botao 1</span>
<span onClick="AparecerDiv2();" style="cursor: pointer;">botao 2 </span>
<div id="1" style="display: none;">
<iframe src="[http://orkut.com"](http://orkut.com) width="100%" height="900" scrolling="no" frameborder="0"></iframe>
</div>
<div id="2" style="display: none;">
<iframe src="[http://google.com"](http://google.com) width="100%" height="900" scrolling="no" frameborder="0"></iframe>
</div>
o que esta errado?Discussão (1)
Carregando comentários...