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

176
Views
¿Cómo hago desaparecer un Div en el 80% de desplazamiento?

Por favor, me gustaría hacer desaparecer un div si se ha desplazado verticalmente hasta el 80% de su altura total. Intenté usar este código javascript pero no funcionó.

 <script> window.onscroll = function() {myFunction()}; function myFunction() { var scrollpercent = (document.body.scrollTop + document.documentElement.scrollTop) / (document.documentElement.scrollHeight - document.documentElement.clientHeight); if ( scrollpercent>0.8{ document.getElementById("mega").style.display= "none"; } else{ document.getElementById("mega").style.display= "block"; } } </script>

Por favor, ayúdame a saber qué estoy haciendo mal.

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