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

171
Views
how to simulate mouse over without mouse events?

In this question there are 7 submenus in the navbar, I want when the website is loaded, make something like hover over all the menus one by one. Do not trigger mouse events, only manipulate DOM/style, I must write the code in JavaScript

Here is one of the Submenus :

<div class="submenu">
  <ul class="linkmenu">
    <li class="d-md-none">
      <div class="nav-item standalone-nav"><span><a href="/wines/_/N-n" data-nav-label="Browse all Offers"><strong>Browse all Offers</strong></a></span></div>
    </li>
    <li>
      <div class="nav-item"> <span>Type</span> <i class="arrow down"></i>
      </div>
      . . . . .
      </a>
    </li> -->
  </ul>
</div>

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can use

css: [querySelecter]:hover

example:

.nav-item:hover { /* css code here */ }

js: a mouseover and mouseleave

example:

document.querySelecter('.nav-item').addEventListener('mouseover',()=>{ /* js */ }
document.querySelecter('.nav-item').addEventListener('mouseleave',()=>{ /* js */ }
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!