Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

rviegas

abrir link duma combo box num iframe

Recommended Posts

como é k faço para abrir um link duma combo box dentro de um iframe?

 

coloco target="nomedoiframe" a seguir ao <option value="pagina.htm">opção da combo box</option> ?

 

ou como é k faço?

Compartilhar este post


Link para o post
Compartilhar em outros sites

Assim:

 

antes crie sua iframe, e adicione o atributo name.

 

exemplo.

<iframe src="arquivo.htm" name="iframe"></iframe>
Depois crie seu menu de salto (Inserir » Formulários » Menu de salto).

 

No código html da página, você vai ter uma linha parecida com essa.

 

<select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
Mude o parent para o nome da iframe.

 

<form name="form1">  <select name="menu1" onChange="MM_jumpMenu('iframe',this,0)">  <option value="arquivo1.htm" selected>arquivo</option>  <option value="arquivo2.htm">aquivo2</option>    </select></form>

Compartilhar este post


Link para o post
Compartilhar em outros sites

tenho desta forma...<select name="select2" onChange="AbreJanela(this.value)" class="listmenu1"> <option selected>LISTA DE MUSEUS</option> <option value="http://www.google.pt">Casa M. Frederico de Freitas </option>como é k fica entao?

Compartilhar este post


Link para o post
Compartilhar em outros sites

desculpe... tar a encomodar, mas tenho muita urgência para entregar este trabalho, pois vai ser submetido a avaliação daki a 5 horas.

 

o nome do meu iframe é mmcentro.

 

de certeza que substituo o this apenas por mmcentro, sem aspas, sem nada?

 

será que poderia colocar o código como fica no final, sff

 

obrigado

 

de seguida, apresento o código total da página...

 

 

<html>

<head>

<title>Museus da Madeira</title>

<style type="text/css">

<!--

@import url("estilos/estilosmm.css");

body {

margin-left: 0px;

margin-top: 0px;

margin-right: 0px;

margin-bottom: 0px;

}

-->

</style>

<script language="JavaScript" type="text/JavaScript">

<!--

function MM_reloadPage(init) { //reloads the window if Nav4 resized

if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {

document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}

else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();

}

MM_reloadPage(true);

//-->

</script>

<script type="text/javascript" language="JavaScript1.2" src="stm31.js"></script>

</head>

<script LANGUAGE="JavaScript">

<!--

 

function AbreJanela(Conteudo)

{

document.all.mmcentro2.src=Conteudo;

}

 

//-->

</SCRIPT>

<body>

<table border="0" align="center" cellpadding="0" cellspacing="0">

<tr>

<td rowspan="3" class="logo"><a href="museusmadeira.htm" target="mmcentro"><img src="images/museusmadeira_01.gif" alt="Página Principal" width="239" height="140" border="0"></a></td>

<td class="bg2"> </td>

</tr>

<tr>

<td class="bg3"><table width="400" height="13" border="0" align="right" cellpadding="0" cellspacing="0">

<tr>

<td width="88" height="13"><a href="mmenglish.htm" class="menucima">English</a></td>

<td width="75" height="13"><a href="mmcontactos.htm" class="menucima">Deutsch</a></td>

<td width="75" height="13"><a href="mmmapa.htm" class="menucima">Mapa</a></td>

<td width="75" height="13"><a href="mmcontactos.htm" class="menucima">Contactos</a></td>

<td width="60" height="13"><span class="celulabtseta"><span class="celulapesquisa">

<input name="textfield" type="text" class="pesquisa" value="Pesquisa">

</span>

</span></td>

<td width="23" height="13"><span class="celulabtseta">

<input name=btnG type= "image" value="Procurar" src="images/museusmadeiraseta.jpg" alt="Pesquisar" width="18" height="13">

</span></td>

</tr>

</table> </td>

</tr>

<tr>

<td class="bg4"> </td>

</tr>

</table>

<table width="700" height="270" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FEFFBD">

<tr>

<td width="239" height="270" align="right" valign="top"><table width="200" height="25" border="0" cellpadding="0" cellspacing="0">

<tr>

<td width="200" height="20" align="right" valign="top"><form name="form1" method="post" action="">

<select name="select2" onChange="AbreJanela(this.value)" class="listmenu1">

<option selected>LISTA DE MUSEUS</option>

<option value="mm11">Casa M. Frederico de Freitas </option>

<option>IBTAM </option>

<option>M. Bib. Mário Barbeito de Vasconcelos</option>

<option>M. da Cidade</option>

<option>M. da Electricidade</option>

<option>M. de Arte Contemporânea</option>

<option>M. de Arte Sacra</option>

<option>M. Henrique e Francisco Franco</option>

<option>M. do Vinho</option>

<option>M. do Vinho Madeira</option>

<option>M. Municipal do Funchal</option>

<option>M. Quinta das Cruzes</option>

<option>M. Etnográfico da Madeira</option>

<option>M. da Baleia </option>

</select>

</form></td>

</tr>

</table> <table width="165" border="0" cellspacing="0" cellpadding="0">

<tr>

<td class="menuesq">

<!-- MENU -->

 

<script type="text/javascript" language="JavaScript1.2">

<!--

stm_bm(["menu3755",400,"","blank.gif",0,"","",0,0,250,0,1000,1,0,0,""],this);

stm_bp("p0",[1,4,0,0,0,3,0,7,100,"",-2,"",-2,50,0,0,"#fffff7","#fffff7","",3,0,0,"#000000"]);

stm_ai("p0i0",[0,"ENTIDADE","","",-1,-1,0,"","_self","","","","",0,0,0,"arrow_r.gif","arrow_r.gif",7,7,0,0,1,"#fffff7",0,"#b5bed6",0,"museusmadeiratracejado.jpg","museusmadeiratracejado3.jpg",3,3,0,0,"#fffff7","#000000","#6b5722","#6b5722","bold 8pt Verdana","bold 8pt Verdana",0,0]);

stm_bpx("p1","p0",[1,2,0,0,0,3,0,0]);

stm_aix("p1i0","p0i0",[0,"MISSÃO","","",-1,-1,0,"","_self","","","","",0,0,0,"","",0,0]);

stm_aix("p1i1","p1i0",[0,"OBJECTIVOS","","",-1,-1,0,"file:///C|/Documents%20and%20Settings/Jakim%20José/Os%20meus%20documentos/WD%20e%20PD/Trabalhos/Museus%20Madeira/Final/Museus%20Madeira/museusmadeira/mmobjectivos.htm","mmcentro2"]);

stm_aix("p1i2","p1i0",[0,"HISTÓRIA"]);

stm_aix("p1i3","p1i0",[0,"EQUIPA"]);

stm_aix("p1i4","p1i0",[0,""]);

stm_ep();

stm_aix("p0i1","p0i0",[0,"SERVIÇOS"]);

stm_bpx("p2","p0",[1,2]);

stm_aix("p2i0","p1i0",[0,"BILHETES"]);

stm_aix("p2i1","p0i0",[0,"ENTRETENIMENTO"]);

stm_bpx("p3","p1",[]);

stm_aix("p3i0","p1i0",[0,"PALAVRAS CRUZADAS"]);

stm_aix("p3i1","p1i0",[0,"PUZZLE"]);

stm_aix("p3i2","p1i0",[0,"SOPA DE LETRAS"]);

stm_aix("p3i3","p1i4",[]);

stm_ep();

stm_aix("p2i2","p1i0",[0,"FÓRUM"]);

stm_aix("p2i3","p1i0",[0,"GALERIA VIRTUAL"]);

stm_aix("p2i4","p1i0",[0,"LEMBRANÇAS"]);

stm_aix("p2i5","p1i0",[0,"NEWSLETTER"]);

stm_aix("p2i6","p1i0",[0,"WALLPAPERS"]);

stm_aix("p2i7","p1i4",[]);

stm_ep();

stm_aix("p0i2","p0i0",[0,"COLECÇÕES"]);

stm_bpx("p4","p1",[]);

stm_aix("p4i0","p1i0",[0,"APRESENTAÇÕES"]);

stm_aix("p4i1","p1i0",[0,"DOCUMENTAÇÃO"]);

stm_aix("p4i2","p1i0",[0,"TRABALHOS"]);

stm_aix("p4i3","p1i4",[]);

stm_ep();

stm_aix("p0i3","p0i0",[0,"EXPOSIÇÕES"]);

stm_bpx("p5","p1",[]);

stm_aix("p5i0","p1i0",[0,"ACTUAIS"]);

stm_aix("p5i1","p1i0",[0,"ARQUIVO"]);

stm_aix("p5i2","p1i0",[0,"PERMANENTES"]);

stm_aix("p5i3","p1i4",[]);

stm_ep();

stm_aix("p0i4","p1i0",[0,"CALENDÁRIO"]);

stm_aix("p0i5","p1i0",[0,"LIVRO DE VISITAS"]);

stm_aix("p0i6","p1i0",[0,"AMIGOS"]);

stm_aix("p0i7","p0i0",[0,"VISITAS","","",-1,-1,0,"","_self","","","","",0,0,0,"","",0,0,0,0,1,"#fffff7",0,"#b5bed6",0,"museusmadeiratracejado.jpg","museusmadeiratracejado3.jpg",3,3,0,0,"#fffff7","#000000","#6b5722","#6b5722","bold 9pt Verdana","bold 9pt Verdana"]);

stm_aix("p0i8","p0i7",[0,""]);

stm_ep();

stm_em();

//-->

</script>

 

 

<!-- FIM MENU -->

 

 </td>

</tr>

</table></td>

<td width="461" height="270" align="left" valign="top"><table width="461" height="270" border="0" cellpadding="0" cellspacing="0">

<tr>

<td align="left" valign="top"><iframe src="mmprincipal.htm" name="mmcentro2" width="461" marginwidth="0" height="225" marginheight="0" align="top" scrolling="auto" frameborder="0"></iframe>

 

</td>

</tr>

<tr>

<td width="461" height="25" align="center" valign="bottom"><a href="http://www.jakimjose.com" class="rodape">© 2004 Jakim José . Todos os direitos reservados</a> <span class="rodapesep">|</span> <a href="mminformacao.htm" target="mmcentro2" class="rodape">Informação</a> </td>

</tr>

</table></td>

</tr>

</table>

</body>

</html>

Compartilhar este post


Link para o post
Compartilhar em outros sites

Fiz de outra forma.

 

Mudei somente na tag form.

 

 

<html><head><title>Museus da Madeira</title><style type="text/css"><!--@import url("estilos/estilosmm.css");body {margin-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;}--></style><script language="JavaScript" type="text/JavaScript"><!--function MM_reloadPage(init) { //reloads the window if Nav4 resizedif (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);//--></script><script type="text/javascript" language="JavaScript1.2" src="stm31.js"></script></head><script LANGUAGE="JavaScript"><!--function AbreJanela(Conteudo){document.all.mmcentro2.src=Conteudo;}//--></SCRIPT><body><table border="0" align="center" cellpadding="0" cellspacing="0"><tr><td rowspan="3" class="logo"><a href="museusmadeira.htm" target="mmcentro"><img src="images/museusmadeira_01.gif" alt="Página Principal" width="239" height="140" border="0"></a></td><td class="bg2"> </td></tr><tr><td class="bg3"><table width="400" height="13" border="0" align="right" cellpadding="0" cellspacing="0"><tr><td width="88" height="13"><a href="mmenglish.htm" class="menucima">English</a></td><td width="75" height="13"><a href="mmcontactos.htm" class="menucima">Deutsch</a></td><td width="75" height="13"><a href="mmmapa.htm" class="menucima">Mapa</a></td><td width="75" height="13"><a href="mmcontactos.htm" class="menucima">Contactos</a></td><td width="60" height="13"><span class="celulabtseta"><span class="celulapesquisa"><input name="textfield" type="text" class="pesquisa" value="Pesquisa"></span></span></td><td width="23" height="13"><span class="celulabtseta"><input name=btnG type= "image" value="Procurar" src="images/museusmadeiraseta.jpg" alt="Pesquisar" width="18" height="13"></span></td></tr></table> </td></tr><tr><td class="bg4"> </td></tr></table><table width="700" height="270" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FEFFBD"><tr><td width="239" height="270" align="right" valign="top"><table width="200" height="25" border="0" cellpadding="0" cellspacing="0"><tr><td width="200" height="20" align="right" valign="top"><form action="" method="post" name="form1" target="mmcentro"><select name="select2" onChange="AbreJanela(this.value)" class="listmenu1"><option selected>LISTA DE MUSEUS</option><option value="mm11">Casa M. Frederico de Freitas </option><option>IBTAM </option><option>M. Bib. Mário Barbeito de Vasconcelos</option><option>M. da Cidade</option><option>M. da Electricidade</option><option>M. de Arte Contemporânea</option><option>M. de Arte Sacra</option><option>M. Henrique e Francisco Franco</option><option>M. do Vinho</option><option>M. do Vinho Madeira</option><option>M. Municipal do Funchal</option><option>M. Quinta das Cruzes</option><option>M. Etnográfico da Madeira</option><option>M. da Baleia </option></select></form></td></tr></table> <table width="165" border="0" cellspacing="0" cellpadding="0"><tr><td class="menuesq"><!-- MENU --><script type="text/javascript" language="JavaScript1.2"><!--stm_bm(["menu3755",400,"","blank.gif",0,"","",0,0,250,0,1000,1,0,0,""],this);stm_bp("p0",[1,4,0,0,0,3,0,7,100,"",-2,"",-2,50,0,0,"#fffff7","#fffff7","",3,0,0,"#000000"]);stm_ai("p0i0",[0,"ENTIDADE","","",-1,-1,0,"","_self","","","","",0,0,0,"arrow_r.gif","arrow_r.gif",7,7,0,0,1,"#fffff7",0,"#b5bed6",0,"museusmadeiratracejado.jpg","museusmadeiratracejado3.jpg",3,3,0,0,"#fffff7","#000000","#6b5722","#6b5722","bold 8pt Verdana","bold 8pt Verdana",0,0]);stm_bpx("p1","p0",[1,2,0,0,0,3,0,0]);stm_aix("p1i0","p0i0",[0,"MISSÃO","","",-1,-1,0,"","_self","","","","",0,0,0,"","",0,0]);stm_aix("p1i1","p1i0",[0,"OBJECTIVOS","","",-1,-1,0,"file:///C|/Documents%20and%20Settings/Jakim%20José/Os%20meus%20documentos/WD%20e%20PD/Trabalhos/Museus%20Madeira/Final/Museus%20Madeira/museusmadeira/mmobjectivos.htm","mmcentro2"]);stm_aix("p1i2","p1i0",[0,"HISTÓRIA"]);stm_aix("p1i3","p1i0",[0,"EQUIPA"]);stm_aix("p1i4","p1i0",[0,""]);stm_ep();stm_aix("p0i1","p0i0",[0,"SERVIÇOS"]);stm_bpx("p2","p0",[1,2]);stm_aix("p2i0","p1i0",[0,"BILHETES"]);stm_aix("p2i1","p0i0",[0,"ENTRETENIMENTO"]);stm_bpx("p3","p1",[]);stm_aix("p3i0","p1i0",[0,"PALAVRAS CRUZADAS"]);stm_aix("p3i1","p1i0",[0,"PUZZLE"]);stm_aix("p3i2","p1i0",[0,"SOPA DE LETRAS"]);stm_aix("p3i3","p1i4",[]);stm_ep();stm_aix("p2i2","p1i0",[0,"FÓRUM"]);stm_aix("p2i3","p1i0",[0,"GALERIA VIRTUAL"]);stm_aix("p2i4","p1i0",[0,"LEMBRANÇAS"]);stm_aix("p2i5","p1i0",[0,"NEWSLETTER"]);stm_aix("p2i6","p1i0",[0,"WALLPAPERS"]);stm_aix("p2i7","p1i4",[]);stm_ep();stm_aix("p0i2","p0i0",[0,"COLECÇÕES"]);stm_bpx("p4","p1",[]);stm_aix("p4i0","p1i0",[0,"APRESENTAÇÕES"]);stm_aix("p4i1","p1i0",[0,"DOCUMENTAÇÃO"]);stm_aix("p4i2","p1i0",[0,"TRABALHOS"]);stm_aix("p4i3","p1i4",[]);stm_ep();stm_aix("p0i3","p0i0",[0,"EXPOSIÇÕES"]);stm_bpx("p5","p1",[]);stm_aix("p5i0","p1i0",[0,"ACTUAIS"]);stm_aix("p5i1","p1i0",[0,"ARQUIVO"]);stm_aix("p5i2","p1i0",[0,"PERMANENTES"]);stm_aix("p5i3","p1i4",[]);stm_ep();stm_aix("p0i4","p1i0",[0,"CALENDÁRIO"]);stm_aix("p0i5","p1i0",[0,"LIVRO DE VISITAS"]);stm_aix("p0i6","p1i0",[0,"AMIGOS"]);stm_aix("p0i7","p0i0",[0,"VISITAS","","",-1,-1,0,"","_self","","","","",0,0,0,"","",0,0,0,0,1,"#fffff7",0,"#b5bed6",0,"museusmadeiratracejado.jpg","museusmadeiratracejado3.jpg",3,3,0,0,"#fffff7","#000000","#6b5722","#6b5722","bold 9pt Verdana","bold 9pt Verdana"]);stm_aix("p0i8","p0i7",[0,""]);stm_ep();stm_em();//--></script><!-- FIM MENU --> </td></tr></table></td><td width="461" height="270" align="left" valign="top"><table width="461" height="270" border="0" cellpadding="0" cellspacing="0"><tr><td align="left" valign="top"><iframe src="mmprincipal.htm" name="mmcentro2" width="461" marginwidth="0" height="225" marginheight="0" align="top" scrolling="auto" frameborder="0"></iframe> </td></tr><tr><td width="461" height="25" align="center" valign="bottom"><a href="http://www.jakimjose.com" class="rodape">© 2004 Jakim José . Todos os direitos reservados</a> <span class="rodapesep">|</span> <a href="mminformacao.htm" target="mmcentro2" class="rodape">Informação</a> </td></tr></table></td></tr></table></body></html>

Compartilhar este post


Link para o post
Compartilhar em outros sites

p****... muitíssimo obrgadosó ocorreu um pequeno problema... o link so abre/funciona no iframe, no IE. No mozilla, nao funcionar.porque seráé aki k se vê quais os bons foruns ... respostas super rápidas às questões formuladas pelos utilizadores.mts parabens e mais uma vez, obrigado

Compartilhar este post


Link para o post
Compartilhar em outros sites

pois, mas o meu objectivo é ter todos os conteudos compatíveisaté porque vou ser avaliado tendo em conta esse critério

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.