Bom dia pessoal, Preciso da ajuda de vocês, sou iniciante em JS e montei a seguinte função: var loc = "inicio.html"
function localiza(ht){
if (ht=='inicio'){
loc = "inicio.html";
}
else if (ht=='sobre'){
loc = "sobre.html";
}
else if (ht=='servicos'){
loc = "servicos.html";
}
else if (ht=='solucoes'){
loc = "solucoes.html";
}
else if (ht=='parceiros'){
loc = "parceiros.html";
}
else if (ht=='contato'){
loc = "contato.html";
}
document.getElementById('encontrado').src=loc
}
Para abrir as páginas neste iframe:
<iframe id="encontrado" width="458" height="413" frameborder="0" src="inicio.html"> </iframe>
E cada botão do menu do site esta com este código:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="176" height="28" id="inicio" accesskey="I" tabindex="1" title="Página principal" onClick="java script:localiza('inicio')"> O meu problema é o seguinte, tudo isso ai em cima, funciona normalmente no firefox, no chrome, no netscape mas não Internet explorer não funciona de jeito maneira... alguém poderia me ajudar por favor