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

143
Visualizações
Most efficient way of showing or calling repeat/duplicate HTML?

I have five div elements containing the same six images. Only one div is shown at a time (others are display:none) but all are on the same page. Basic example:

<div class="one">
    <img src="hello.png" class="wave">
    <img src="hello.png" class="wave">
    <img src="hello.png" class="wave">
    <img src="hello.png" class="wave">
    <img src="hello.png" class="wave">
    <img src="hello.png" class="wave">
</div>
<div class="one">
    <img src="hello.png" class="wave">
    <img src="hello.png" class="wave">
    <img src="hello.png" class="wave">
    <img src="hello.png" class="wave">
    <img src="hello.png" class="wave">
    <img src="hello.png" class="wave">
</div>

Is there a more efficient way of showing these duplicate sets? Perhaps an array or innerHTML.

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