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

207
Visualizações
Return dynamically changing images at url when accessed via email signature

I am new to coding so need some help please.

I have set up a url page where the images are changing dynamically using the following code. However when I link to this from my Outlook email signature, it isn't returning that image, just a broken link. Do I need to add javascript to get it to return the image when called please?:

<html>
<head>
<meta name="viewport" content="width=device-width, minimum-scale=0.1">
<title>dynamic email</title>
</head>
<body style="margin: 0px; background: #0e0e0e; height: 100%">
<img id="Projects" style="display: block;-webkit-user-select: none;margin: auto;background-color: hsl(0, 0%, 90%);" src="https://www.mywebsite.com/assets/email-assets/image1.png" width="547" height="184">
<script>var imageSources = ["https://www.mywebsite.com/assets/email-assets/image2.png",     "https://www.mywebsite.com/assets/email-assets/image3.png", "https://www.mywebsite.com/assets/email-assets/image4.png", "https://www.mywebsite.com/assets/email-assets/image5.png", "https://www.mywebsite.com/assets/email-assets/image6.png", "https://www.mywebsite.com/assets/email-assets/image7.png"]
      var index = 0;
      setInterval(function(){
        if (index === imageSources.length) {
          index = 0;
        }
        document.getElementById("Projects").src = imageSources[index];
        index++;
      }, 1000);
</script>
</body>
</html>
about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

Outlook does not run any scripts or submit HTML forms for security reasons.

about 4 years ago · Juan Pablo Isaza Relatório

0

Most email clients will not allow for javascript inside the email body.

To help protect you from viruses that might be contained in HTML-format and RTF-format messages, both scripts and ActiveX controls contained in these kinds of messages are deactivated automatically, regardless of the security zone setting. This is because Outlook places all incoming messages in the Restricted Sites security zone by default. The default setting for the Restricted Sites zone is High. This disables automatic scripting and prevents ActiveX controls from opening without permission.

Changing the zone setting to something other than the default is not recommended.

If you need to run the script on an individual message when the security zone is set to Restricted Sites, you can work around the default protection by following these steps:

  1. Open the message.
  2. On the View menu, click View in Internet Zone.
  3. Click Yes when you are prompted about running the script.

You can now run the script.

about 4 years ago · Juan Pablo Isaza Relatório
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