Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

205
Visualizações
Putting images in one frame, click on image, have that image open in a different frame

I am trying to set up an image gallery that will allow an image from the middle frame to open open in the main frame. I have it set up right now to allow people to scroll the images down one frame. If I can get the image to open in another frame so people don't have to scroll back up to the top, that would be my end goal.

Thank you in advance for any and all help, this is what I have so far.

<script>
function myFunction(imgs) {
  var expandImg = document.getElementById("expandedImg");
  var imgText = document.getElementById("imgtext");
  expandImg.src = imgs.src;
  imgText.innerHTML = imgs.alt;
  expandImg.parentElement.style.display = "block";
}
</script>

<a href="01.png" target="middle" onclick="myFunction(this);"> <img src="01.png" style="width:150px; height:150px;"> </a> <br>

The index page containing the frames info.

<FRAMESET ROWS="65px,*" frameborder="0">
   <FRAME SRC="top.html" NAME=top scrolling="no">
<frameset cols="150,150,700" frameborder="0">
   <frame src="content.html" name="content" scrolling="yes">
   <frame src="middle.html" name="middle" scrolling="yes">
   <frame src="main.html" name="main" scrolling="no">
</frameset>
</frameset>
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda