Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

71
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda