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

184
Visualizações
In a series of dynamically generated geographical image maps, why does the repositioning only work on the first image?

I'm generating and showing a series of geographic image maps. For 1 screen resolution, I have to adjust the position of each map in the series. The reposition works for the 1st image, but not any of the subsequent images. The code that moves through the series of images follows.

var divNum = 0;

function rotate() { // Simulation.

  var nx = divNum + 5;
  var daDiv = 'yr' + divNum;

  if (divNum != 0) {
    var daDivPrev = 'yr' + (divNum - 1);
    var cmdx = daDivPrev + \".style.visibility='hidden';\";
    eval(cmdx);
  }

  document.getElementById(daDiv).style.zIndex = '' + nx;

  if (screen.height == 768) {
    document.getElementById('mapx').style.position = 'absolute';
    document.getElementById('mapx').style.left = '26%';
  }

  var cmdx = daDiv + \".style.visibility='visible';\";
  eval(cmdx);

  if (divNum > 3) return; // Stop at 4 because of advance number.

  divNum++; // advance divNum to next div ID
  setTimeout('rotate();', 3000);

}

setTimeout('rotate()', 2000); // Rotate.

The 'mapx' div is wrapped around the img tag just prior to the map generation.

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