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

109
Views
Tener un problema con este método de crear una información sobre herramientas usando Javascript

Nuestra tarea es ver el siguiente video y usar el método del autor, crear una lista HTML, crear una información sobre herramientas usando Javascript para cada elemento de la lista y diseñar la información sobre herramientas con CSS .

El video crea información sobre herramientas para hipervínculos y solo necesitaba cambiarlo para que la información sobre herramientas sea para los elementos de la lista. Suena simple pero tengo un problema; mi CSS funciona para todo MENOS la información sobre herramientas de la clase.* La información sobre herramientas solo se muestra con el estilo predeterminado. Por favor, ayúdame a averiguar por qué.

Aquí está el vídeo:

 https://www.youtube.com/watch?v=ylWto93_rZM

y aquí está mi código:

 https://codepen.io/janicefore/pen/wvqmBOV var Tooltip = { opening: function() { var theList = document.getElementsByTagName("li"); if ( theList ) { for(var i = 0; i < theList.length; i++) { if( theList[i].title.length) { theList[i].addEventListener("mouseover", Tooltip.showTip); theList[i].addEventListener("mouseover", Tooltip.hideTip); } } } }, showTip: function( event ) { var spanElm = document.createElement( "span" ); spanElm.className = "tooltip"; spanElm.innerHTML = event.target.title; event.target.title ""; event.target.appendChild( spanElm ); event.target._spanRef = spanElm; }, hideTip: function ( event ) { event.target.title = event.target._spanRef.innerHTML; event.target.removeChild( event.target._spanRef ); }; window.addEventListener( "load", Tooltip.opening);
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

  1. error tipográfico de javascript: mouseover -> mouseout
  2. error de sintaxis de javascript: event.target.title "";
  3. error de sintaxis de javascript: falta } para información sobre Tooltip = {
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!