Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

78
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!