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

76
Visualizações
click image and make description box and larger image display

how are you supposed to use the mouseover event listener or getradiovalue() how do I incorporate it in the already code i have?

`<div class="container">
    <div class="juno">
        <img src="juno.jpg" 
        width="450" height="150" 
        alt="Roland Juno (a classic)">
        <!--align="right"-->
        
        <p id="demo">ROLAND JUNO SYNTHESZIER</p>`
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

What exactly are you trying to achieve?

Mouseover will trigger every time your cursor hovers over element as well as its children. On the other hand, mouseenter will trigger only when your cursor hovers over the element you assigned the event listener to. Here is a preview of difference.

When using those, you will add event listener just like with click and define a function which will be triggered on that event. Then you can change a size, grab some value, or do whatever you want.

In your case you could use mouseenter and mouseleave so you can control what happens on both. If you need click listener you could just replace mouseenter with click and that will work.

In functions you can use something like targetImageEl.style.width = "500px".

let targetImageEl = document.getElementById("target-image");

targetImageEl.addEventListener("mouseenter", () => {
  // function that triggers when you hover over the image
  console.log("enter");
});

targetImageEl.addEventListener("mouseleave", () => {
  // function that triggers when you move cursor away from previously hovered image
  console.log("leave");
});
<div class="container">
  <div class="juno">
    <img src="juno.jpg" width="450" height="150" alt="Roland Juno (a classic)" id="target-image">
    <!--align="right"-->

    <p id="demo">ROLAND JUNO SYNTHESZIER</p>
  </div>
</div>`

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